Class ElectionMemcachedSessionLocator

    • Field Detail

      • sessions

        private transient volatile java.util.List<Session> sessions
    • Constructor Detail

      • ElectionMemcachedSessionLocator

        public ElectionMemcachedSessionLocator()
      • ElectionMemcachedSessionLocator

        public ElectionMemcachedSessionLocator​(HashAlgorithm hashAlgorithm)
    • Method Detail

      • getSessionByKey

        public Session getSessionByKey​(java.lang.String key)
        Description copied from interface: MemcachedSessionLocator
        Returns a session by special key.
        Returns:
      • getSessionByElection

        private Session getSessionByElection​(java.lang.String key,
                                             java.util.List<Session> copySessionList)
      • updateSessions

        public void updateSessions​(java.util.Collection<Session> list)
        Description copied from interface: MemcachedSessionLocator
        Update sessions when session was added or removed.
        Parameters:
        list - The newer sessions