Class MutableSessionMetaDataEntry
- java.lang.Object
-
- org.wildfly.clustering.web.cache.session.metadata.coarse.MutableSessionMetaDataEntry
-
- All Implemented Interfaces:
Expiration,ImmutableSessionMetaDataEntry,SessionMetaDataEntry
public class MutableSessionMetaDataEntry extends Object implements SessionMetaDataEntry
SessionMetaDataEntrydecorator that captures mutations via aMutableSessionMetaDataOffsetValues.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description MutableSessionMetaDataEntry(ImmutableSessionMetaDataEntry entry, MutableSessionMetaDataOffsetValues values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetCreationTime()Returns the time this entry was created.Value<Instant>getLastAccessEndTime()Returns the last access end time, as an offset of the last access start time.Value<Instant>getLastAccessStartTime()Returns the last access start time, as an offset of the creation time.DurationgetTimeout()booleanisNew()Returns true, if this is a newly created entry, false otherwise.voidsetTimeout(Duration timeout)Sets the session timeout.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.ee.expiration.Expiration
isImmortal
-
-
-
-
Constructor Detail
-
MutableSessionMetaDataEntry
public MutableSessionMetaDataEntry(ImmutableSessionMetaDataEntry entry, MutableSessionMetaDataOffsetValues values)
-
-
Method Detail
-
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
public Instant getCreationTime()
Description copied from interface:ImmutableSessionMetaDataEntryReturns the time this entry was created.- Specified by:
getCreationTimein interfaceImmutableSessionMetaDataEntry- Returns:
- the creation time
-
getTimeout
public Duration getTimeout()
- Specified by:
getTimeoutin interfaceExpiration
-
setTimeout
public void setTimeout(Duration timeout)
Description copied from interface:SessionMetaDataEntrySets the session timeout.- Specified by:
setTimeoutin interfaceSessionMetaDataEntry
-
getLastAccessStartTime
public Value<Instant> 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
public Value<Instant> 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.
-
-