Interface SessionTimeoutHandler


  • public interface SessionTimeoutHandler
    Contains methods to handle the session timeout
    • Method Detail

      • getExpiration

        Long getExpiration​(String token)
        Returns the expiration for the given session token, if exists (returns null otherwise)
      • remove

        void remove​(Collection<String> tokens)
        Removes all session information for the given tokens
      • getExpired

        Set<String> getExpired()
        Returns all expired session tokens
      • set

        void set​(String token,
                 long timeout)
        Sets the session timeout for the given token
      • setAll

        void setAll​(Map<String,​Long> map)
        Sets all expirations in the given map