Interface ExpirationMetaData
- All Superinterfaces:
Expiration
- All Known Subinterfaces:
ImmutableSessionMetaData,InvalidatableSessionMetaData,SessionMetaData
- All Known Implementing Classes:
CompositeImmutableSessionMetaData,CompositeSessionMetaData,DefaultImmutableSessionMetaData,DefaultSessionMetaData,DetachedSessionMetaData,SimpleExpirationMetaData,SimpleImmutableSessionMetaData
Describes expiration-related metadata.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionReturns the time at which this session should expire.Returns the time this object was last accessed.default booleanIndicates whether or not this object is expired.Methods inherited from interface org.wildfly.clustering.server.expiration.Expiration
getTimeout, isImmortal
-
Method Details
-
isExpired
default boolean isExpired()Indicates whether or not this object is expired.- Returns:
- true, if this object has expired, false otherwise.
-
getExpirationTime
Returns the time at which this session should expire.- Returns:
- an optional expiration time, present if the session is mortal and not new.
-
getLastAccessTime
Instant getLastAccessTime()Returns the time this object was last accessed.- Returns:
- the time this object was last accessed.
-