Class CompositeSessionFactory<C,MV extends Contextual<L>,AV,L>
java.lang.Object
org.wildfly.clustering.web.cache.session.CompositeImmutableSessionFactory<MV,AV>
org.wildfly.clustering.web.cache.session.CompositeSessionFactory<C,MV,AV,L>
- Type Parameters:
C- the ServletContext specification typeV- the session attribute value typeL- the local context type
- All Implemented Interfaces:
AutoCloseable,Creator<String,,Map.Entry<MV, AV>, Duration> Locator<String,,Map.Entry<MV, AV>> Remover<String>,ImmutableSessionFactory<MV,,AV> SessionFactory<C,MV, AV, L>
public class CompositeSessionFactory<C,MV extends Contextual<L>,AV,L>
extends CompositeImmutableSessionFactory<MV,AV>
implements SessionFactory<C,MV,AV,L>
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeSessionFactory(SessionMetaDataFactory<MV> metaDataFactory, SessionAttributesFactory<C, AV> attributesFactory, Supplier<L> localContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createImmutableSession(String id, ImmutableSessionMetaData metaData, ImmutableSessionAttributes attributes) createValue(String id, Duration defaultTimeout) booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.web.cache.session.ImmutableSessionFactory
createImmutableSession
-
Constructor Details
-
CompositeSessionFactory
public CompositeSessionFactory(SessionMetaDataFactory<MV> metaDataFactory, SessionAttributesFactory<C, AV> attributesFactory, Supplier<L> localContextFactory)
-
-
Method Details
-
createValue
- Specified by:
createValuein interfaceCreator<C,MV extends Contextual<L>, AV>
-
findValue
- Specified by:
findValuein interfaceLocator<C,MV extends Contextual<L>> - Overrides:
findValuein classCompositeImmutableSessionFactory<MV extends Contextual<L>,AV>
-
tryValue
- Specified by:
tryValuein interfaceLocator<C,MV extends Contextual<L>> - Overrides:
tryValuein classCompositeImmutableSessionFactory<MV extends Contextual<L>,AV>
-
remove
-
purge
-
getMetaDataFactory
- Specified by:
getMetaDataFactoryin interfaceImmutableSessionFactory<C,MV extends Contextual<L>> - Specified by:
getMetaDataFactoryin interfaceSessionFactory<C,MV extends Contextual<L>, AV, L> - Overrides:
getMetaDataFactoryin classCompositeImmutableSessionFactory<MV extends Contextual<L>,AV>
-
getAttributesFactory
- Specified by:
getAttributesFactoryin interfaceImmutableSessionFactory<C,MV extends Contextual<L>> - Specified by:
getAttributesFactoryin interfaceSessionFactory<C,MV extends Contextual<L>, AV, L> - Overrides:
getAttributesFactoryin classCompositeImmutableSessionFactory<MV extends Contextual<L>,AV>
-
createSession
- Specified by:
createSessionin interfaceSessionFactory<C,MV extends Contextual<L>, AV, L>
-
createImmutableSession
public ImmutableSession createImmutableSession(String id, ImmutableSessionMetaData metaData, ImmutableSessionAttributes attributes) - Specified by:
createImmutableSessionin interfaceImmutableSessionFactory<C,MV extends Contextual<L>> - Overrides:
createImmutableSessionin classCompositeImmutableSessionFactory<MV extends Contextual<L>,AV>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSessionFactory<C,MV extends Contextual<L>, AV, L>
-