Class SimpleImmutableSessionMetaData
- java.lang.Object
-
- org.wildfly.clustering.web.cache.session.metadata.SimpleImmutableSessionMetaData
-
- All Implemented Interfaces:
Expiration,ExpirationMetaData,ImmutableSessionMetaData
public class SimpleImmutableSessionMetaData extends Object implements ImmutableSessionMetaData
An immutable "snapshot" of a session's meta-data which can be accessed outside the scope of a transaction.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description SimpleImmutableSessionMetaData(ImmutableSessionMetaData metaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetCreationTime()InstantgetLastAccessEndTime()InstantgetLastAccessStartTime()DurationgetTimeout()booleanisNew()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.ee.expiration.Expiration
isImmortal
-
Methods inherited from interface org.wildfly.clustering.ee.expiration.ExpirationMetaData
isExpired
-
Methods inherited from interface org.wildfly.clustering.web.session.ImmutableSessionMetaData
getLastAccessTime
-
-
-
-
Constructor Detail
-
SimpleImmutableSessionMetaData
public SimpleImmutableSessionMetaData(ImmutableSessionMetaData metaData)
-
-
Method Detail
-
isNew
public boolean isNew()
- Specified by:
isNewin interfaceImmutableSessionMetaData
-
getCreationTime
public Instant getCreationTime()
- Specified by:
getCreationTimein interfaceImmutableSessionMetaData
-
getLastAccessStartTime
public Instant getLastAccessStartTime()
- Specified by:
getLastAccessStartTimein interfaceImmutableSessionMetaData
-
getLastAccessEndTime
public Instant getLastAccessEndTime()
- Specified by:
getLastAccessEndTimein interfaceImmutableSessionMetaData
-
getTimeout
public Duration getTimeout()
- Specified by:
getTimeoutin interfaceExpiration
-
-