Class MutableSessionMetaDataEntry
java.lang.Object
org.wildfly.clustering.session.cache.metadata.coarse.AbstractSessionMetaDataEntry
org.wildfly.clustering.session.cache.metadata.coarse.MutableSessionMetaDataEntry
- All Implemented Interfaces:
org.wildfly.clustering.server.expiration.Expiration, ImmutableSessionMetaDataEntry, SessionMetaDataEntry
public class MutableSessionMetaDataEntry
extends AbstractSessionMetaDataEntry
implements 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.booleanisNew()Returns true, if this is a newly created entry, false otherwise.voidsetTimeout(Duration timeout) Sets the session timeout.Methods inherited from class AbstractSessionMetaDataEntry
toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.clustering.server.expiration.Expiration
isImmortal
-
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.- Specified by:
isNewin interfaceImmutableSessionMetaDataEntry- Returns:
- true, if this is a newly created entry, false otherwise.
-
getCreationTime
Description copied from interface:ImmutableSessionMetaDataEntryReturns the time this entry was created.- Specified by:
getCreationTimein interfaceImmutableSessionMetaDataEntry- Returns:
- the creation time
-
getTimeout
- Specified by:
getTimeoutin interfaceorg.wildfly.clustering.server.expiration.Expiration
-
setTimeout
Description copied from interface:SessionMetaDataEntrySets the session timeout.- Specified by:
setTimeoutin interfaceSessionMetaDataEntry- Parameters:
timeout- the session timeout
-
getLastAccessStartTime
Description copied from interface:ImmutableSessionMetaDataEntryReturns the last access start time, as an offset of the creation time.- Specified by:
getLastAccessStartTimein interfaceImmutableSessionMetaDataEntry- Specified by:
getLastAccessStartTimein interfaceSessionMetaDataEntry- 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.- Specified by:
getLastAccessEndTimein interfaceImmutableSessionMetaDataEntry- Specified by:
getLastAccessEndTimein interfaceSessionMetaDataEntry- Returns:
- the last access end time, as an offset of the last access start time.
-