Class SignalCachingOmemoStore


  • public class SignalCachingOmemoStore
    extends CachingOmemoStore<org.whispersystems.libsignal.IdentityKeyPair,​org.whispersystems.libsignal.IdentityKey,​org.whispersystems.libsignal.state.PreKeyRecord,​org.whispersystems.libsignal.state.SignedPreKeyRecord,​org.whispersystems.libsignal.state.SessionRecord,​org.whispersystems.libsignal.SignalProtocolAddress,​org.whispersystems.libsignal.ecc.ECPublicKey,​org.whispersystems.libsignal.state.PreKeyBundle,​org.whispersystems.libsignal.SessionCipher>
    Implementation of the CachingOmemoStore for smack-omemo-signal. This Store implementation can either be used as a proxy wrapping a persistent SignalOmemoStore in order to prevent excessive storage access, or it can be used standalone as an ephemeral store, which doesn't persist its contents.
    • Constructor Detail

      • SignalCachingOmemoStore

        public SignalCachingOmemoStore​(OmemoStore<org.whispersystems.libsignal.IdentityKeyPair,​org.whispersystems.libsignal.IdentityKey,​org.whispersystems.libsignal.state.PreKeyRecord,​org.whispersystems.libsignal.state.SignedPreKeyRecord,​org.whispersystems.libsignal.state.SessionRecord,​org.whispersystems.libsignal.SignalProtocolAddress,​org.whispersystems.libsignal.ecc.ECPublicKey,​org.whispersystems.libsignal.state.PreKeyBundle,​org.whispersystems.libsignal.SessionCipher> wrappedStore)
        Create a new SignalCachingOmemoStore as a caching layer around a persisting OmemoStore (eg. a SignalFileBasedOmemoStore).
        Parameters:
        wrappedStore - other store implementation that gets wrapped
      • SignalCachingOmemoStore

        public SignalCachingOmemoStore()
        Create a new SignalCachingOmemoStore as an ephemeral standalone OmemoStore.