Interface ContextualSessionMetaDataEntry<C>
- Type Parameters:
C- the context type
- All Superinterfaces:
Contextual<C>, ImmutableSessionMetaDataEntry, Remappable<ContextualSessionMetaDataEntry<C>, SessionMetaDataEntryOffsets>, SessionMetaDataEntry
- All Known Implementing Classes:
DefaultSessionMetaDataEntry
public interface ContextualSessionMetaDataEntry<C>
extends SessionMetaDataEntry, Contextual<C>, Remappable<ContextualSessionMetaDataEntry<C>, SessionMetaDataEntryOffsets>
A contextual session metadata entry.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault InstantReturns the time this entry was created.Returns 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.Methods inherited from interface Contextual
getContextMethods inherited from interface ImmutableSessionMetaDataEntry
getMaxIdle, isNewMethods inherited from interface Remappable
remapMethods inherited from interface SessionMetaDataEntry
setMaxIdle
-
Method Details
-
getCreationTime
Description copied from interface:ImmutableSessionMetaDataEntryReturns the time this entry was created.- Specified by:
getCreationTimein interfaceImmutableSessionMetaDataEntry- Returns:
- the creation time
-
getLastAccessStartTime
OffsetValue<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
OffsetValue<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.
-