Class AttachedSession<C>
java.lang.Object
org.wildfly.clustering.session.cache.DecoratedSession<C>
org.wildfly.clustering.session.cache.AttachedSession<C>
- Type Parameters:
C- the session context type
- All Implemented Interfaces:
AutoCloseable,Supplier<org.wildfly.clustering.session.Session<C>>,org.wildfly.clustering.session.ImmutableSession,org.wildfly.clustering.session.Session<C>
Decorated
Session whose methods throw an IllegalStateException if the session is not valid.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionAttachedSession(org.wildfly.clustering.session.Session<C> session, Consumer<org.wildfly.clustering.session.ImmutableSession> closeTask) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.wildfly.clustering.session.SessionMetaDatavoidMethods inherited from class org.wildfly.clustering.session.cache.DecoratedSession
equals, get, getContext, getId, hashCode, isValid, toString
-
Constructor Details
-
AttachedSession
-
-
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>- Overrides:
getMetaDatain classDecoratedSession<C>
-
getAttributes
- Specified by:
getAttributesin interfaceorg.wildfly.clustering.session.ImmutableSession- Overrides:
getAttributesin classDecoratedSession<C>
-
invalidate
public void invalidate()- Specified by:
invalidatein interfaceorg.wildfly.clustering.session.Session<C>- Overrides:
invalidatein classDecoratedSession<C>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.session.Session<C>- Overrides:
closein classDecoratedSession<C>
-