Class DetachedSession<C>
java.lang.Object
org.wildfly.clustering.session.cache.AbstractImmutableSession
org.wildfly.clustering.session.cache.DetachedSession<C>
- Type Parameters:
C- the session context
- All Implemented Interfaces:
AutoCloseable,org.wildfly.clustering.session.ImmutableSession,org.wildfly.clustering.session.Session<C>
public class DetachedSession<C>
extends AbstractImmutableSession
implements org.wildfly.clustering.session.Session<C>
Detached session implementation, for use outside the context of a request.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionDetachedSession(org.wildfly.clustering.session.SessionManager<C> 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
-
getContext
-
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.session.Session<C>
-