Class DefaultImmutableSessionMetaData
java.lang.Object
org.wildfly.clustering.session.cache.metadata.coarse.DefaultImmutableSessionMetaData
- All Implemented Interfaces:
Expiration,ExpirationMetaData,ImmutableSessionMetaData
- Direct Known Subclasses:
DefaultSessionMetaData
Default immutable session metadata implementation that delegates to a cache entry.
- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the time this session was created.Returns the end time of the last request to access this session, or null if session was created during the current request.Returns the start time of the last request to access this session, or null if session was created during the current request.The duration of time, after which an idle object should expire.booleanisNew()Indicates whether or not this session was created by the current thread.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.clustering.server.expiration.Expiration
isImmortalMethods inherited from interface org.wildfly.clustering.server.expiration.ExpirationMetaData
isExpiredMethods inherited from interface org.wildfly.clustering.session.ImmutableSessionMetaData
getLastAccessTime
-
Constructor Details
-
DefaultImmutableSessionMetaData
-
-
Method Details
-
isNew
public boolean isNew()Description copied from interface:ImmutableSessionMetaDataIndicates whether or not this session was created by the current thread.- Specified by:
isNewin interfaceImmutableSessionMetaData- Returns:
- true, if this session is new, 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:ImmutableSessionMetaDataReturns the start time of the last request to access this session, or null if session was created during the current request.- Specified by:
getLastAccessStartTimein interfaceImmutableSessionMetaData- Returns:
- the start time of the last request to access this session, or null if session was created during the current request.
-
getLastAccessEndTime
Description copied from interface:ImmutableSessionMetaDataReturns the end time of the last request to access this session, or null if session was created during the current request.- Specified by:
getLastAccessEndTimein interfaceImmutableSessionMetaData- Returns:
- the end time of the last request to access this session, or null if session was created during the current request.
-
getTimeout
Description copied from interface:ExpirationThe duration of time, after which an idle object should expire.- Specified by:
getTimeoutin interfaceExpiration- Returns:
- the object timeout
-
toString
-