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) Creates a cached session decorator -
Method Summary
Methods inherited from class DecoratedSession
equals, get, getAttributes, getContext, getId, getMetaData, hashCode, invalidate, isValid, toStringMethods 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>
-