Package org.cyclos.impl.access
Interface SessionTimeoutHandler
-
- All Known Implementing Classes:
SessionTimeoutHandlerImpl
public interface SessionTimeoutHandlerContains methods to handle the session timeout
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LonggetExpiration(String token)Returns the expiration for the given session token, if exists (returns null otherwise)voidremove(Collection<String> tokens)Removes all session information for the given tokensSet<String>removeExpired()Removes all expired session information, returning the removed tokensvoidset(String token, long timeout)Sets the session timeout for the given tokenvoidsetAll(Map<String,Long> map)Sets all expirations in the given map
-
-
-
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
-
removeExpired
Set<String> removeExpired()
Removes all expired session information, returning the removed tokens
-
set
void set(String token, long timeout)
Sets the session timeout for the given token
-
-