Class CompositeSession<L>
- java.lang.Object
-
- org.wildfly.clustering.web.cache.session.CompositeImmutableSession
-
- org.wildfly.clustering.web.cache.session.CompositeSession<L>
-
- All Implemented Interfaces:
AutoCloseable,ImmutableSession,Session<L>
public class CompositeSession<L> extends CompositeImmutableSession implements Session<L>
Generic session implementation - independent of cache mapping strategy.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CompositeSession(String id, InvalidatableSessionMetaData metaData, SessionAttributes attributes, AtomicReference<L> localContext, LocalContextFactory<L> localContextFactory, org.wildfly.clustering.ee.Remover<String> remover)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()SessionAttributesgetAttributes()LgetLocalContext()SessionMetaDatagetMetaData()voidinvalidate()booleanisValid()-
Methods inherited from class org.wildfly.clustering.web.cache.session.CompositeImmutableSession
getId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.web.session.ImmutableSession
getId
-
-
-
-
Constructor Detail
-
CompositeSession
public CompositeSession(String id, InvalidatableSessionMetaData metaData, SessionAttributes attributes, AtomicReference<L> localContext, LocalContextFactory<L> localContextFactory, org.wildfly.clustering.ee.Remover<String> remover)
-
-
Method Detail
-
getAttributes
public SessionAttributes getAttributes()
- Specified by:
getAttributesin interfaceImmutableSession- Specified by:
getAttributesin interfaceSession<L>- Overrides:
getAttributesin classCompositeImmutableSession
-
isValid
public boolean isValid()
- Specified by:
isValidin interfaceImmutableSession- Overrides:
isValidin classCompositeImmutableSession
-
invalidate
public void invalidate()
- Specified by:
invalidatein interfaceSession<L>
-
getMetaData
public SessionMetaData getMetaData()
- Specified by:
getMetaDatain interfaceImmutableSession- Specified by:
getMetaDatain interfaceSession<L>- Overrides:
getMetaDatain classCompositeImmutableSession
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSession<L>
-
getLocalContext
public L getLocalContext()
- Specified by:
getLocalContextin interfaceSession<L>
-
-