Class MutableSessionCreationMetaData
java.lang.Object
org.wildfly.clustering.session.cache.metadata.fine.MutableSessionCreationMetaData
- All Implemented Interfaces:
ImmutableSessionCreationMetaData, SessionCreationMetaData
Mutable session creation metadata.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionMutableSessionCreationMetaData(ImmutableSessionCreationMetaData metaData, Value<Duration> timeout) Creates mutable session creation metadata. -
Method Summary
Modifier and TypeMethodDescriptionReturns the time at which this session was created.Returns the maximum duration of time this session may remain idle before it will be expired by the session manager, orDuration.ZEROif the session will never expire.voidsetMaxIdle(Duration timeout) Sets the maximum duration of time this session may remain idle before it will be expired by the session manager.toString()
-
Constructor Details
-
MutableSessionCreationMetaData
public MutableSessionCreationMetaData(ImmutableSessionCreationMetaData metaData, Value<Duration> timeout) Creates mutable session creation metadata.- Parameters:
metaData- the immutable session creation metadatatimeout- the session timeout value.
-
-
Method Details
-
getCreationTime
Description copied from interface:ImmutableSessionCreationMetaDataReturns the time at which this session was created.- Specified by:
getCreationTimein interfaceImmutableSessionCreationMetaData- Returns:
- the time at which this session was created
-
getMaxIdle
Description copied from interface:ImmutableSessionCreationMetaDataReturns the maximum duration of time this session may remain idle before it will be expired by the session manager, orDuration.ZEROif the session will never expire.- Specified by:
getMaxIdlein interfaceImmutableSessionCreationMetaData- Returns:
- the maximum duration of time this session may remain idle before it will be expired by the session manager, or
Duration.ZEROif the session will never expire.
-
setMaxIdle
Description copied from interface:SessionCreationMetaDataSets the maximum duration of time this session may remain idle before it will be expired by the session manager.- Specified by:
setMaxIdlein interfaceSessionCreationMetaData- Parameters:
timeout- a maximum duration of time this session may remain idle before it will be expired by the session manager.
-
toString
-