Interface InvalidatableSessionMetaData
- All Superinterfaces:
AutoCloseable, Expiration, ExpirationMetaData, ImmutableSessionMetaData, SessionMetaData
- All Known Implementing Classes:
CompositeSessionMetaData, DefaultSessionMetaData
An invalidatable view of session metadata.
- Author:
- Paul Ferraro
-
Method Summary
Methods inherited from interface Expiration
getMaxIdleMethods inherited from interface ExpirationMetaData
getExpirationTime, isExpiredMethods inherited from interface ImmutableSessionMetaData
getCreationTime, getLastAccessEndTime, getLastAccessStartTime, getLastAccessTimeMethods inherited from interface SessionMetaData
setLastAccess, setMaxIdle
-
Method Details
-
isValid
boolean isValid()Indicates whether or not this session is still valid.- Returns:
- true, if this session is valid, false otherwise
-
invalidate
boolean invalidate()Invalidates the session.- Returns:
- true, if session was invalidated, false if it was already invalid.
-
close
void close()Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.- Specified by:
closein interfaceAutoCloseable
-