Class MutableSessionCreationMetaData
- java.lang.Object
-
- org.wildfly.clustering.web.cache.session.metadata.fine.MutableSessionCreationMetaData
-
- All Implemented Interfaces:
ImmutableSessionCreationMetaData,SessionCreationMetaData
public class MutableSessionCreationMetaData extends Object implements SessionCreationMetaData
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description MutableSessionCreationMetaData(ImmutableSessionCreationMetaData metaData, Value<Duration> timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetCreationTime()Returns the time at which this session was created.DurationgetTimeout()Returns the maximum duration of time this session may remain idle before it will be expired by the session manager.voidsetTimeout(Duration timeout)Sets the maximum duration of time this session may remain idle before it will be expired by the session manager.
-
-
-
Constructor Detail
-
MutableSessionCreationMetaData
public MutableSessionCreationMetaData(ImmutableSessionCreationMetaData metaData, Value<Duration> timeout)
-
-
Method Detail
-
getCreationTime
public Instant 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
-
getTimeout
public Duration getTimeout()
Description copied from interface:ImmutableSessionCreationMetaDataReturns the maximum duration of time this session may remain idle before it will be expired by the session manager.- Specified by:
getTimeoutin interfaceImmutableSessionCreationMetaData- Returns:
- the maximum duration of time this session may remain idle before it will be expired by the session manager.
-
setTimeout
public void setTimeout(Duration timeout)
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:
setTimeoutin interfaceSessionCreationMetaData
-
-