Interface ImmutableSessionMetaDataEntry
- All Known Subinterfaces:
ContextualSessionMetaDataEntry<C>, SessionMetaDataEntry
- All Known Implementing Classes:
AbstractSessionMetaDataEntry, DefaultSessionMetaDataEntry, MutableSessionMetaDataEntry
public interface ImmutableSessionMetaDataEntry
An immutable view of the session metadata entry.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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.Returns the duration of time since last access that this session should expire.booleanisNew()Returns true, if this is a newly created entry, false otherwise.
-
Method Details
-
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
-
getLastAccessStartTime
-
getLastAccessEndTime
-
getMaxIdle
Duration getMaxIdle()Returns the duration of time since last access that this session should expire. An immortal session will returnDuration.ZERO.- Returns:
- the duration of time since last access that this session should expire.
-