Class DefaultSessionCreationMetaDataEntry<C>
java.lang.Object
org.wildfly.clustering.session.cache.metadata.fine.DefaultSessionCreationMetaDataEntry<C>
- Type Parameters:
C- the session context type
- All Implemented Interfaces:
org.wildfly.clustering.cache.function.Remappable<SessionCreationMetaDataEntry<C>,,Supplier<org.wildfly.clustering.server.offset.Offset<Duration>>> Contextual<C>,ImmutableSessionCreationMetaData,SessionCreationMetaData,SessionCreationMetaDataEntry<C>
public class DefaultSessionCreationMetaDataEntry<C>
extends Object
implements SessionCreationMetaDataEntry<C>
- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.wildfly.clustering.server.util.Supplied<C>Returns the context as a supplied value.Returns 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.voidsetTimeout(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
-
DefaultSessionCreationMetaDataEntry
public DefaultSessionCreationMetaDataEntry() -
DefaultSessionCreationMetaDataEntry
-
-
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
-
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
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- Parameters:
timeout- a maximum duration of time this session may remain idle before it will be expired by the session manager.
-
getContext
Description copied from interface:ContextualReturns the context as a supplied value.- Specified by:
getContextin interfaceContextual<C>- Returns:
- a supplied context.
-
remap
public SessionCreationMetaDataEntry<C> remap(Supplier<org.wildfly.clustering.server.offset.Offset<Duration>> timeoutOffset) - Specified by:
remapin interfaceorg.wildfly.clustering.cache.function.Remappable<SessionCreationMetaDataEntry<C>,Supplier<org.wildfly.clustering.server.offset.Offset<Duration>>>
-
toString
-