Class DetachedSessionMetaData<C, B extends Batch>
java.lang.Object
org.wildfly.clustering.session.cache.metadata.DetachedSessionMetaData<C,B>
- Type Parameters:
C- the session context typeB- the batch type
- All Implemented Interfaces:
Expiration, ExpirationMetaData, ImmutableSessionMetaData, SessionMetaData
SessionMetaData implementation for detached sessions.- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the time this session was created.If present, returns the end time of the last request to access this session.If present, returns the start time of the last request to access this session.When present, defines the maximum duration of time since last access, after which managed state will expire.booleanIndicates whether or not this object is expired.voidsetLastAccess(Instant startTime, Instant endTime) Sets the time this session was last accessed.voidsetMaxIdle(Duration duration) Specifies the duration of time since last access after which this session will expire.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ExpirationMetaData
getExpirationTimeMethods inherited from interface ImmutableSessionMetaData
getLastAccessTime
-
Constructor Details
-
DetachedSessionMetaData
-
-
Method Details
-
isExpired
public boolean isExpired()Description copied from interface:ExpirationMetaDataIndicates whether or not this object is expired.- Specified by:
isExpiredin interfaceExpirationMetaData- Returns:
- true, if this object has expired, false otherwise.
-
getCreationTime
Description copied from interface:ImmutableSessionMetaDataReturns the time this session was created.- Specified by:
getCreationTimein interfaceImmutableSessionMetaData- Returns:
- the time this session was created
-
getLastAccessStartTime
Description copied from interface:ImmutableSessionMetaDataIf present, returns the start time of the last request to access this session.- Specified by:
getLastAccessStartTimein interfaceImmutableSessionMetaData- Returns:
- the start time of the last request to access this session, or empty if session was created during the current request.
-
getLastAccessEndTime
Description copied from interface:ImmutableSessionMetaDataIf present, returns the end time of the last request to access this session.- Specified by:
getLastAccessEndTimein interfaceImmutableSessionMetaData- Returns:
- the end time of the last request to access this session, or empty if session was created during the current request.
-
getMaxIdle
Description copied from interface:ExpirationWhen present, defines the maximum duration of time since last access, after which managed state will expire.- Specified by:
getMaxIdlein interfaceExpiration- Returns:
- the optional duration of time since last access after which managed state will expire
-
setMaxIdle
Description copied from interface:SessionMetaDataSpecifies the duration of time since last access after which this session will expire.- Specified by:
setMaxIdlein interfaceSessionMetaData- Parameters:
duration- the maximum idle duration
-
setLastAccess
Description copied from interface:SessionMetaDataSets the time this session was last accessed.- Specified by:
setLastAccessin interfaceSessionMetaData- Parameters:
startTime- the start time of the last requestendTime- the end time of the last request
-