Class InMemoryPreKeyStore

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      PreKeyRecord loadPreKey(int preKeyId) Load a local PreKeyRecord.
      void storePreKey(int preKeyId, PreKeyRecord record) Store a local PreKeyRecord.
      boolean containsPreKey(int preKeyId)
      void removePreKey(int preKeyId) Delete a PreKeyRecord from local storage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InMemoryPreKeyStore

        InMemoryPreKeyStore()
    • Method Detail

      • loadPreKey

         PreKeyRecord loadPreKey(int preKeyId)

        Load a local PreKeyRecord.

        Parameters:
        preKeyId - the ID of the local PreKeyRecord.
        Returns:

        the corresponding PreKeyRecord.

      • storePreKey

         void storePreKey(int preKeyId, PreKeyRecord record)

        Store a local PreKeyRecord.

        Parameters:
        preKeyId - the ID of the PreKeyRecord to store.
        record - the PreKeyRecord.
      • containsPreKey

         boolean containsPreKey(int preKeyId)
        Parameters:
        preKeyId - A PreKeyRecord ID.
        Returns:

        true if the store has a record for the preKeyId, otherwise false.

      • removePreKey

         void removePreKey(int preKeyId)

        Delete a PreKeyRecord from local storage.

        Parameters:
        preKeyId - The ID of the PreKeyRecord to remove.