Interface SessionMetaDataEntry
- All Superinterfaces:
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 TypeMethodDescriptionReturns the last access end time, as an offset of the last access start time.Returns the last access start time, as an offset of the creation time.voidsetMaxIdle(Duration maxIdle) Specifies the duration of time since last access after which this session will expire.Methods inherited from interface ImmutableSessionMetaDataEntry
getCreationTime, getMaxIdle, isNew
-
Method Details
-
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
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.
-
setMaxIdle
Specifies the duration of time since last access after which this session will expire.- Parameters:
maxIdle- the duration of time since last access after which this session will expire.
-