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>
Generic session implementation - independent of cache mapping strategy.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeSession(String id, InvalidatableSessionMetaData metaData, SessionAttributes attributes, Contextual<L> contextual, Supplier<L> contextFactory, Remover<String> remover) -
Method Summary
Methods inherited from class org.wildfly.clustering.web.cache.session.CompositeImmutableSession
getIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.web.session.ImmutableSession
getId
-
Constructor Details
-
CompositeSession
public CompositeSession(String id, InvalidatableSessionMetaData metaData, SessionAttributes attributes, Contextual<L> contextual, Supplier<L> contextFactory, Remover<String> remover)
-
-
Method Details
-
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
- 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
- Specified by:
getLocalContextin interfaceSession<L>
-