Interface SessionMetaDataEntry
- All Superinterfaces:
org.wildfly.clustering.server.expiration.Expiration, ImmutableSessionMetaDataEntry
- All Known Subinterfaces:
ContextualSessionMetaDataEntry<C>
- All Known Implementing Classes:
AbstractSessionMetaDataEntry, DefaultSessionMetaDataEntry, MutableSessionMetaDataEntry
Encapsulates the immutable cache entry properties storing session metadata.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionorg.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.voidsetTimeout(Duration timeout) Sets the session timeout.Methods inherited from interface org.wildfly.clustering.server.expiration.Expiration
getTimeout, isImmortalMethods inherited from interface ImmutableSessionMetaDataEntry
getCreationTime, isNew
-
Method Details
-
getLastAccessStartTime
org.wildfly.clustering.server.offset.Value<Instant> getLastAccessStartTime()Description copied from interface:ImmutableSessionMetaDataEntryReturns the last access start time, as an offset of the creation time.- Specified by:
getLastAccessStartTimein interfaceImmutableSessionMetaDataEntry- Returns:
- the last access start time, as an offset of the creation time.
-
getLastAccessEndTime
org.wildfly.clustering.server.offset.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- Returns:
- the last access end time, as an offset of the last access start time.
-
setTimeout
Sets the session timeout.- Parameters:
timeout- the session timeout
-