Class MutableSessionAccessMetaData
java.lang.Object
org.wildfly.clustering.session.cache.metadata.fine.MutableSessionAccessMetaData
- All Implemented Interfaces:
ImmutableSessionAccessMetaData,SessionAccessMetaData
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionMutableSessionAccessMetaData(ImmutableSessionAccessMetaData metaData, MutableSessionAccessMetaDataValues values) -
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.booleanisNew()Returns true, if this is a newly created entry, false otherwise.voidsetLastAccessDuration(Duration sinceCreation, Duration lastAccess) Sets the last accessed duration (since this session was created) and last request duration.
-
Constructor Details
-
MutableSessionAccessMetaData
public MutableSessionAccessMetaData(ImmutableSessionAccessMetaData metaData, MutableSessionAccessMetaDataValues values)
-
-
Method Details
-
isNew
public boolean isNew()Description copied from interface:ImmutableSessionAccessMetaDataReturns true, if this is a newly created entry, false otherwise.- Specified by:
isNewin interfaceImmutableSessionAccessMetaData- Returns:
- true, if this is a newly created entry, false otherwise.
-
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
-