Class DefaultSessionAccessMetaDataEntry
java.lang.Object
org.wildfly.clustering.session.cache.metadata.fine.DefaultSessionAccessMetaDataEntry
- All Implemented Interfaces:
Remappable<SessionAccessMetaDataEntry, SessionAccessMetaDataEntryOffsets>, ImmutableSessionAccessMetaData, SessionAccessMetaData, SessionAccessMetaDataEntry
A session access metadata entry.
- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the duration of time between the start and of the last access.Returns the duration of time between session creation and the start of the last access.remap(SessionAccessMetaDataEntryOffsets offsets) Returns a new instance of this object with the specified operand applied.voidsetLastAccessDuration(Duration sinceCreation, Duration lastAccess) Sets the last accessed duration (since this session was created) and last request duration.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ImmutableSessionAccessMetaData
isNew
-
Constructor Details
-
DefaultSessionAccessMetaDataEntry
public DefaultSessionAccessMetaDataEntry()Creates session access metadata entry.
-
-
Method Details
-
getSinceCreationDuration
Description copied from interface:ImmutableSessionAccessMetaDataReturns the duration of time between session creation and the start of the last access.- Specified by:
getSinceCreationDurationin interfaceImmutableSessionAccessMetaData- Returns:
- the duration of time between session creation and the start of the last access.
-
getLastAccessDuration
Description copied from interface:ImmutableSessionAccessMetaDataReturns the duration of time between the start and of the last access.- Specified by:
getLastAccessDurationin interfaceImmutableSessionAccessMetaData- Returns:
- the duration of time between the start and of the last access.
-
setLastAccessDuration
Description copied from interface:SessionAccessMetaDataSets the last accessed duration (since this session was created) and last request duration.- Specified by:
setLastAccessDurationin interfaceSessionAccessMetaData- Parameters:
sinceCreation- the duration of time this session was createdlastAccess- the duration of time this session was last accessed
-
remap
Description copied from interface:RemappableReturns a new instance of this object with the specified operand applied.- Specified by:
remapin interfaceRemappable<SessionAccessMetaDataEntry, SessionAccessMetaDataEntryOffsets>- Parameters:
offsets- a value applied to the replacement value- Returns:
- a replacement value
-
toString
-