Class CompositeSessionFactory<C,MV extends Contextual<SC>,AV,SC>
java.lang.Object
org.wildfly.clustering.session.cache.CompositeImmutableSessionFactory<MV,AV>
org.wildfly.clustering.session.cache.CompositeSessionFactory<C,MV,AV,SC>
- Type Parameters:
C- the session manager context typeMV- the session metadata typeAV- the session attributes typeSC- the session context type
- All Implemented Interfaces:
AutoCloseable,org.wildfly.clustering.cache.BiCreator<String,,MV, AV, Duration> org.wildfly.clustering.cache.BiLocator<String,,MV, AV> org.wildfly.clustering.cache.Creator<String,,Map.Entry<MV, AV>, Duration> org.wildfly.clustering.cache.Locator<String,,Map.Entry<MV, AV>> org.wildfly.clustering.cache.Remover<String>,org.wildfly.clustering.server.Registration,ImmutableSessionFactory<MV,,AV> SessionFactory<C,MV, AV, SC>
public class CompositeSessionFactory<C,MV extends Contextual<SC>,AV,SC>
extends CompositeImmutableSessionFactory<MV,AV>
implements SessionFactory<C,MV,AV,SC>
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.server.Registration
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionCompositeSessionFactory(SessionMetaDataFactory<MV> metaDataFactory, SessionAttributesFactory<C, AV> attributesFactory, Supplier<SC> localContextFactory) -
Method Summary
Methods inherited from class org.wildfly.clustering.session.cache.CompositeImmutableSessionFactory
createImmutableSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.cache.BiCreator
createValueAsyncMethods inherited from interface org.wildfly.clustering.cache.BiLocator
findValueAsyncMethods inherited from interface org.wildfly.clustering.cache.Creator
createValueMethods inherited from interface org.wildfly.clustering.session.cache.ImmutableSessionFactory
createImmutableSession, createImmutableSession, findEntry, tryEntryMethods inherited from interface org.wildfly.clustering.cache.Locator
findValue, tryValue, tryValueAsyncMethods inherited from interface org.wildfly.clustering.cache.Remover
purge, removeMethods inherited from interface org.wildfly.clustering.session.cache.SessionFactory
close, createEntry, purgeAsync, removeAsync
-
Constructor Details
-
CompositeSessionFactory
public CompositeSessionFactory(SessionMetaDataFactory<MV> metaDataFactory, SessionAttributesFactory<C, AV> attributesFactory, Supplier<SC> localContextFactory)
-
-
Method Details
-
getMetaDataFactory
- Specified by:
getMetaDataFactoryin interfaceImmutableSessionFactory<C,MV extends Contextual<SC>> - Specified by:
getMetaDataFactoryin interfaceSessionFactory<C,MV extends Contextual<SC>, AV, SC> - Overrides:
getMetaDataFactoryin classCompositeImmutableSessionFactory<MV extends Contextual<SC>,AV>
-
getAttributesFactory
- Specified by:
getAttributesFactoryin interfaceImmutableSessionFactory<C,MV extends Contextual<SC>> - Specified by:
getAttributesFactoryin interfaceSessionFactory<C,MV extends Contextual<SC>, AV, SC> - Overrides:
getAttributesFactoryin classCompositeImmutableSessionFactory<MV extends Contextual<SC>,AV>
-
createSession
public org.wildfly.clustering.session.Session<SC> createSession(String id, Map.Entry<MV, AV> entry, C context) - Specified by:
createSessionin interfaceSessionFactory<C,MV extends Contextual<SC>, AV, SC>
-