Class CompositeImmutableSessionMetaData
java.lang.Object
org.wildfly.clustering.session.cache.metadata.AbstractImmutableSessionMetaData
org.wildfly.clustering.session.cache.metadata.fine.CompositeImmutableSessionMetaData
- All Implemented Interfaces:
Expiration, ExpirationMetaData, ImmutableSessionMetaData
- Direct Known Subclasses:
CompositeSessionMetaData
Immutable session metadata composed of separate creation and access meta data.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeImmutableSessionMetaData(ImmutableSessionCreationMetaData creationMetaData, ImmutableSessionAccessMetaData accessMetaData) Creates composite immutable session metadata. -
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, defines the maximum duration of time since last access, after which managed state will expire.Methods inherited from class AbstractImmutableSessionMetaData
toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ExpirationMetaData
getExpirationTime, isExpiredMethods inherited from interface ImmutableSessionMetaData
getLastAccessTime
-
Constructor Details
-
CompositeImmutableSessionMetaData
public CompositeImmutableSessionMetaData(ImmutableSessionCreationMetaData creationMetaData, ImmutableSessionAccessMetaData accessMetaData) Creates composite immutable session metadata.- Parameters:
creationMetaData- the creation metadataaccessMetaData- the access metadata
-
-
Method Details
-
getMaxIdle
Description copied from interface:ExpirationWhen present, defines the maximum duration of time since last access, after which managed state will expire.- Returns:
- the optional duration of time since last access after which managed state will expire
-
getCreationTime
Description copied from interface:ImmutableSessionMetaDataReturns the time this session was created.- Returns:
- the time this session was created
-
getLastAccessStartTime
Description copied from interface:ImmutableSessionMetaDataIf present, returns the start time of the last request to access this session.- Returns:
- the start time of the last request to access this session, or empty if session was created during the current request.
-
getLastAccessEndTime
Description copied from interface:ImmutableSessionMetaDataIf present, returns the end time of the last request to access this session.- Returns:
- the end time of the last request to access this session, or empty if session was created during the current request.
-