Class InMemoryPreKeyStore

  • All Implemented Interfaces:
    PreKeyStore

    public class InMemoryPreKeyStore
    extends java.lang.Object
    implements PreKeyStore
    • Constructor Detail

      • InMemoryPreKeyStore

        public InMemoryPreKeyStore()
    • Method Detail

      • storePreKey

        public void storePreKey​(int preKeyId,
                                PreKeyRecord record)
        Description copied from interface: PreKeyStore
        Store a local PreKeyRecord.
        Specified by:
        storePreKey in interface PreKeyStore
        Parameters:
        preKeyId - the ID of the PreKeyRecord to store.
        record - the PreKeyRecord.
      • containsPreKey

        public boolean containsPreKey​(int preKeyId)
        Specified by:
        containsPreKey in interface PreKeyStore
        Parameters:
        preKeyId - A PreKeyRecord ID.
        Returns:
        true if the store has a record for the preKeyId, otherwise false.
      • removePreKey

        public void removePreKey​(int preKeyId)
        Description copied from interface: PreKeyStore
        Delete a PreKeyRecord from local storage.
        Specified by:
        removePreKey in interface PreKeyStore
        Parameters:
        preKeyId - The ID of the PreKeyRecord to remove.