Class MutableSessionMetaDataEntry
java.lang.Object
org.wildfly.clustering.session.cache.metadata.coarse.AbstractSessionMetaDataEntry
org.wildfly.clustering.session.cache.metadata.coarse.MutableSessionMetaDataEntry
- All Implemented Interfaces:
ImmutableSessionMetaDataEntry, SessionMetaDataEntry
SessionMetaDataEntry decorator that captures mutations via a MutableSessionMetaDataOffsetValues.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionMutableSessionMetaDataEntry(ImmutableSessionMetaDataEntry entry, MutableSessionMetaDataOffsetValues values) A mutable session meta data entry using the specified offset values. -
Method Summary
Modifier and TypeMethodDescriptionReturns the time this entry was created.org.wildfly.clustering.server.offset.Value<Instant> Returns the last access end time, as an offset of the last access start time.org.wildfly.clustering.server.offset.Value<Instant> Returns the last access start time, as an offset of the creation time.Returns the duration of time since last access that this session should expire.booleanisNew()Returns true, if this is a newly created entry, false otherwise.voidsetMaxIdle(Duration timeout) Specifies the duration of time since last access after which this session will expire.Methods inherited from class AbstractSessionMetaDataEntry
toString
-
Constructor Details
-
MutableSessionMetaDataEntry
public MutableSessionMetaDataEntry(ImmutableSessionMetaDataEntry entry, MutableSessionMetaDataOffsetValues values) A mutable session meta data entry using the specified offset values.- Parameters:
entry- a metadata entryvalues- a set of offset values
-
-
Method Details
-
isNew
public boolean isNew()Description copied from interface:ImmutableSessionMetaDataEntryReturns true, if this is a newly created entry, false otherwise.- Returns:
- true, if this is a newly created entry, false otherwise.
-
getCreationTime
Description copied from interface:ImmutableSessionMetaDataEntryReturns the time this entry was created.- Returns:
- the creation time
-
getMaxIdle
Description copied from interface:ImmutableSessionMetaDataEntryReturns the duration of time since last access that this session should expire. An immortal session will returnDuration.ZERO.- Returns:
- the duration of time since last access that this session should expire.
-
setMaxIdle
Description copied from interface:SessionMetaDataEntrySpecifies the duration of time since last access after which this session will expire.- Parameters:
timeout- the duration of time since last access after which this session will expire.
-
getLastAccessStartTime
Description copied from interface:ImmutableSessionMetaDataEntryReturns the last access start time, as an offset of the creation time.- Returns:
- the last access start time, as an offset of the creation time.
-
getLastAccessEndTime
Description copied from interface:ImmutableSessionMetaDataEntryReturns the last access end time, as an offset of the last access start time.- Returns:
- the last access end time, as an offset of the last access start time.
-