Interface SessionMetaDataEntry
-
- All Superinterfaces:
Expiration,ImmutableSessionMetaDataEntry
- All Known Subinterfaces:
ContextualSessionMetaDataEntry<C>
- All Known Implementing Classes:
DefaultSessionMetaDataEntry,MutableSessionMetaDataEntry
public interface SessionMetaDataEntry extends ImmutableSessionMetaDataEntry
Encapsulates the immutable cache entry properties storing session metadata.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Value<Instant>getLastAccessEndTime()Returns the last access end time, as an offset of the last access start time.Value<Instant>getLastAccessStartTime()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.ee.expiration.Expiration
getTimeout, isImmortal
-
Methods inherited from interface org.wildfly.clustering.web.cache.session.metadata.coarse.ImmutableSessionMetaDataEntry
getCreationTime, isNew
-
-
-
-
Method Detail
-
getLastAccessStartTime
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
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
void setTimeout(Duration timeout)
Sets the session timeout.- Parameters:
the- session timeout
-
-