Class DetachedSession<C,B extends org.wildfly.clustering.cache.batch.Batch>
java.lang.Object
org.wildfly.clustering.session.cache.AbstractImmutableSession
org.wildfly.clustering.session.cache.DetachedSession<C,B>
- Type Parameters:
C- the session contextB- the batch type
- All Implemented Interfaces:
AutoCloseable,org.wildfly.clustering.server.Registration,org.wildfly.clustering.session.ImmutableSession,org.wildfly.clustering.session.Session<C>
public class DetachedSession<C,B extends org.wildfly.clustering.cache.batch.Batch>
extends AbstractImmutableSession
implements org.wildfly.clustering.session.Session<C>
Detached session implementation, for use outside the context of a request.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.server.Registration
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionDetachedSession(org.wildfly.clustering.session.SessionManager<C, B> manager, String id, C context) -
Method Summary
Methods inherited from class org.wildfly.clustering.session.cache.AbstractImmutableSession
equals, getId, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.clustering.session.ImmutableSession
getId
-
Constructor Details
-
DetachedSession
-
-
Method Details
-
getMetaData
public org.wildfly.clustering.session.SessionMetaData getMetaData()- Specified by:
getMetaDatain interfaceorg.wildfly.clustering.session.ImmutableSession- Specified by:
getMetaDatain interfaceorg.wildfly.clustering.session.Session<C>
-
getAttributes
- Specified by:
getAttributesin interfaceorg.wildfly.clustering.session.ImmutableSession
-
getContext
- Specified by:
getContextin interfaceorg.wildfly.clustering.session.Session<C>
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.wildfly.clustering.session.ImmutableSession
-
invalidate
public void invalidate()- Specified by:
invalidatein interfaceorg.wildfly.clustering.session.Session<C>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.server.Registration
-