public interface SessionTimeoutHandler
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getExpiration(java.lang.String token)
Returns the expiration for the given session token, if exists (returns null otherwise)
|
int |
keepOnly(java.util.Collection<java.lang.String> tokens)
Removes all session information for tokens not in the given collection
|
void |
remove(java.lang.Iterable<java.lang.String> tokens)
Removes all session information for the given tokens
|
java.util.Set<java.lang.String> |
removeExpired()
Removes all expired session information, returning the removed tokens
|
void |
set(java.lang.String token,
long timeout)
Sets the session timeout for the given token
|
void |
setAll(java.util.Map<java.lang.String,java.lang.Long> map)
Sets all expirations in the given map
|
java.lang.Long getExpiration(java.lang.String token)
int keepOnly(java.util.Collection<java.lang.String> tokens)
void remove(java.lang.Iterable<java.lang.String> tokens)
java.util.Set<java.lang.String> removeExpired()
void set(java.lang.String token,
long timeout)
void setAll(java.util.Map<java.lang.String,java.lang.Long> map)