Class ContextualSessionRegistration<C>
java.lang.Object
org.wildfly.clustering.session.cache.DecoratedSession<C>
org.wildfly.clustering.session.cache.ContextualSessionRegistration<C>
- Type Parameters:
C- the session context type
- All Implemented Interfaces:
AutoCloseable,Supplier<org.wildfly.clustering.session.Session<C>>,org.wildfly.clustering.server.context.Contextual,org.wildfly.clustering.server.Registration,ContextualSession<C>,org.wildfly.clustering.session.ImmutableSession,org.wildfly.clustering.session.Session<C>
public class ContextualSessionRegistration<C>
extends DecoratedSession<C>
implements ContextualSession<C>
A session facade whose lifecycle is managed as a
Contextual.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.server.Registration
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionContextualSessionRegistration(org.wildfly.clustering.session.Session<C> session, Runnable closeTask) -
Method Summary
Methods inherited from class org.wildfly.clustering.session.cache.DecoratedSession
equals, get, getAttributes, getContext, getId, getMetaData, hashCode, invalidate, isValid, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.clustering.session.ImmutableSession
getAttributes, getId, isValidMethods inherited from interface org.wildfly.clustering.session.Session
getContext, getMetaData, invalidate
-
Constructor Details
-
ContextualSessionRegistration
-
-
Method Details
-
end
public void end()- Specified by:
endin interfaceorg.wildfly.clustering.server.context.Contextual
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.server.Registration- Overrides:
closein classDecoratedSession<C>
-