Interface ImmutableSessionMetaData
- All Superinterfaces:
Expiration, ExpirationMetaData
- All Known Subinterfaces:
InvalidatableSessionMetaData, SessionMetaData
- All Known Implementing Classes:
AbstractImmutableSessionMetaData, CompositeImmutableSessionMetaData, CompositeSessionMetaData, DefaultImmutableSessionMetaData, DefaultSessionMetaData, DetachedSessionMetaData, SimpleImmutableSessionMetaData
Abstraction for immutable meta information about a session.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionReturns the time this session was created.If present, returns the end time of the last request to access this session.If present, returns the start time of the last request to access this session.When present, returns the time this object was last accessed.Methods inherited from interface Expiration
getMaxIdleMethods inherited from interface ExpirationMetaData
getExpirationTime, isExpired
-
Method Details
-
getCreationTime
Instant getCreationTime()Returns the time this session was created.- Returns:
- the time this session was created
-
getLastAccessStartTime
-
getLastAccessEndTime
-
getLastAccessTime
Description copied from interface:ExpirationMetaDataWhen present, returns the time this object was last accessed.- Specified by:
getLastAccessTimein interfaceExpirationMetaData- Returns:
- the time this object was last accessed, or empty not previously accessed.
-