Class InMemorySessionStore

    • Constructor Detail

      • InMemorySessionStore

        InMemorySessionStore()
    • Method Detail

      • loadSession

         synchronized SessionRecord loadSession(SignalProtocolAddress remoteAddress)

        Returns a copy of the SessionRecord corresponding to the recipientId + deviceId tuple, or a new SessionRecord if one does not currently exist.

        It is important that implementations return a copy of the current durable information. The returned SessionRecord may be modified, but those changes should not have an effect on the durable session state (what is returned by subsequent calls to this method) without the store method being called here first.

        Returns:

        a copy of the SessionRecord corresponding to the recipientId + deviceId tuple, or a new SessionRecord if one does not currently exist.

      • getSubDeviceSessions

         synchronized List<Integer> getSubDeviceSessions(String name)

        Returns all known devices with active sessions for a recipient

        Parameters:
        name - the name of the client.
        Returns:

        all known sub-devices with active sessions.

      • deleteAllSessions

         synchronized void deleteAllSessions(String name)

        Remove the SessionRecords corresponding to all devices of a recipientId.

        Parameters:
        name - the name of the remote client.