Interface SessionExpirationMetaData
-
- All Known Subinterfaces:
ImmutableSessionMetaData,SessionMetaData
- All Known Implementing Classes:
OOBSession
public interface SessionExpirationMetaDataSession meta data that governs expiration.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InstantgetLastAccessEndTime()Returns the end time of the last request to access this session.DurationgetMaxInactiveInterval()Returns the time interval sincegetLastAccessEndTime()after which this session will expire.default booleanisExpired()Indicates whether or not this session was previously idle for longer than the maximum inactive interval.
-
-
-
Method Detail
-
isExpired
default boolean isExpired()
Indicates whether or not this session was previously idle for longer than the maximum inactive interval.- Returns:
- true, if this session is expired, false otherwise
-
getLastAccessEndTime
Instant getLastAccessEndTime()
Returns the end time of the last request to access this session.- Returns:
- the end time of the last request to access this session.
-
getMaxInactiveInterval
Duration getMaxInactiveInterval()
Returns the time interval sincegetLastAccessEndTime()after which this session will expire.- Returns:
- a time interval
-
-