Interface ImmutableSessionMetaData
- All Superinterfaces:
Expiration,ExpirationMetaData
- All Known Subinterfaces:
SessionMetaData
- All Known Implementing Classes:
OOBSession
Abstraction for immutable meta information about a web session.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionReturns the time this session was created.Returns the start time of the last request to access this session.Returns the start time of the last request to access this session.default Instantdefault booleanisNew()Indicates whether or not this session was created by the current thread.Methods inherited from interface org.wildfly.clustering.ee.expiration.Expiration
getTimeout, isImmortalMethods inherited from interface org.wildfly.clustering.ee.expiration.ExpirationMetaData
isExpired
-
Method Details
-
isNew
default boolean isNew()Indicates whether or not this session was created by the current thread.- Returns:
- true, if this session is new, false otherwise
-
getCreationTime
Instant getCreationTime()Returns the time this session was created.- Returns:
- the time this session was created
-
getLastAccessStartTime
Instant getLastAccessStartTime()Returns the start time of the last request to access this session.- Returns:
- the start time of the last request to access this session.
-
getLastAccessEndTime
Instant getLastAccessEndTime()Returns the start time of the last request to access this session.- Returns:
- the start time of the last request to access this session.
-
getLastAccessTime
- Specified by:
getLastAccessTimein interfaceExpirationMetaData
-