Package org.wildfly.clustering.session
Interface ImmutableSessionMetaData
- All Superinterfaces:
Expiration,ExpirationMetaData
- All Known Subinterfaces:
InvalidatableSessionMetaData,SessionMetaData
- All Known Implementing Classes:
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.Returns the end time of the last request to access this session, or null if session was created during the current request.Returns the start time of the last request to access this session, or null if session was created during the current request.default InstantReturns the time this object was last accessed.default booleanisNew()Indicates whether or not this session was created by the current thread.Methods inherited from interface org.wildfly.clustering.server.expiration.Expiration
getTimeout, isImmortalMethods inherited from interface org.wildfly.clustering.server.expiration.ExpirationMetaData
getExpirationTime, 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, or null if session was created during the current request.- Returns:
- the start time of the last request to access this session, or null if session was created during the current request.
-
getLastAccessEndTime
Instant getLastAccessEndTime()Returns the end time of the last request to access this session, or null if session was created during the current request.- Returns:
- the end time of the last request to access this session, or null if session was created during the current request.
-
getLastAccessTime
Description copied from interface:ExpirationMetaDataReturns the time this object was last accessed.- Specified by:
getLastAccessTimein interfaceExpirationMetaData- Returns:
- the time this object was last accessed.
-