Package org.cyclos.impl.access
Interface SessionTimeoutHandler
-
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)Set<String>getExpired()Returns all expired session tokensvoidremove(Collection<String> tokens)Removes all session information for the given 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
-
set
void set(String token, long timeout)
Sets the session timeout for the given token
-
-