Interface ImmutableSessionMetaDataEntry
-
- All Superinterfaces:
Expiration
- All Known Subinterfaces:
ContextualSessionMetaDataEntry<C>,SessionMetaDataEntry
- All Known Implementing Classes:
DefaultSessionMetaDataEntry,MutableSessionMetaDataEntry
public interface ImmutableSessionMetaDataEntry extends Expiration
- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstantgetCreationTime()Returns the time this entry was created.Supplier<Instant>getLastAccessEndTime()Returns the last access end time, as an offset of the last access start time.Supplier<Instant>getLastAccessStartTime()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.-
Methods inherited from interface org.wildfly.clustering.ee.expiration.Expiration
getTimeout, isImmortal
-
-
-
-
Method Detail
-
isNew
boolean isNew()
Returns true, if this is a newly created entry, false otherwise.- Returns:
- true, if this is a newly created entry, false otherwise.
-
getCreationTime
Instant getCreationTime()
Returns the time this entry was created.- Returns:
- the creation time
-
getLastAccessStartTime
Supplier<Instant> getLastAccessStartTime()
Returns 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.
-
-