Class CachedSession<C>
java.lang.Object
org.wildfly.clustering.session.cache.DecoratedSession<C>
org.wildfly.clustering.session.cache.CachedSession<C>
- Type Parameters:
C- the session context type
- All Implemented Interfaces:
AutoCloseable,Supplier<org.wildfly.clustering.session.Session<C>>,CacheableSession<C>,org.wildfly.clustering.session.ImmutableSession,org.wildfly.clustering.session.Session<C>
A session facade whose lifecycle is managed by a
Cache.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCachedSession(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
-
CachedSession
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.session.Session<C>- Overrides:
closein classDecoratedSession<C>
-