Class CompositeSession<C>
java.lang.Object
org.wildfly.clustering.session.cache.AbstractImmutableSession
org.wildfly.clustering.session.cache.CompositeImmutableSession
org.wildfly.clustering.session.cache.CompositeSession<C>
- Type Parameters:
C- the session context type
- All Implemented Interfaces:
AutoCloseable,org.wildfly.clustering.session.ImmutableSession,org.wildfly.clustering.session.Session<C>
public class CompositeSession<C>
extends CompositeImmutableSession
implements org.wildfly.clustering.session.Session<C>
Generic session implementation composed of attributes and metadata.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeSession(String id, InvalidatableSessionMetaData metaData, SessionAttributes attributes, org.wildfly.clustering.server.util.Supplied<C> context, Supplier<C> contextFactory, org.wildfly.clustering.cache.CacheEntryRemover<String> remover) -
Method Summary
Methods inherited from class org.wildfly.clustering.session.cache.AbstractImmutableSession
equals, getId, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.clustering.session.ImmutableSession
getId
-
Constructor Details
-
CompositeSession
public CompositeSession(String id, InvalidatableSessionMetaData metaData, SessionAttributes attributes, org.wildfly.clustering.server.util.Supplied<C> context, Supplier<C> contextFactory, org.wildfly.clustering.cache.CacheEntryRemover<String> remover)
-
-
Method Details
-
getAttributes
- Specified by:
getAttributesin interfaceorg.wildfly.clustering.session.ImmutableSession- Overrides:
getAttributesin classCompositeImmutableSession
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.wildfly.clustering.session.ImmutableSession- Overrides:
isValidin classCompositeImmutableSession
-
invalidate
public void invalidate()- Specified by:
invalidatein interfaceorg.wildfly.clustering.session.Session<C>
-
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 classCompositeImmutableSession
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.session.Session<C>
-
getContext
- Specified by:
getContextin interfaceorg.wildfly.clustering.session.Session<C>
-