Class CompositeSessionFactory<CC, MV extends Contextual<SC>, AV, SC>
java.lang.Object
org.wildfly.clustering.session.cache.CompositeImmutableSessionFactory<MV,AV>
org.wildfly.clustering.session.cache.CompositeSessionFactory<CC,MV,AV,SC>
- Type Parameters:
CC- the deployment context typeMV- the session metadata typeAV- the session attributes typeSC- the session context type
- All Implemented Interfaces:
AutoCloseable, BiCacheEntryCreator<String, MV, AV, Map.Entry<Instant, Optional<Duration>>>, BiCacheEntryLocator<String,MV, AV>, CacheEntryCreator<String, Map.Entry<MV, AV>, Map.Entry<Instant, Optional<Duration>>>, CacheEntryLocator<String, Map.Entry<MV, AV>>, CacheEntryRemover<String>, ImmutableSessionFactory<MV, AV>, ImmutableSessionFactoryConfiguration<MV, AV>, SessionFactory<CC, MV, AV, SC>, SessionFactoryConfiguration<CC, MV, AV, SC>
- Direct Known Subclasses:
HotRodSessionFactory
public class CompositeSessionFactory<CC, MV extends Contextual<SC>, AV, SC>
extends CompositeImmutableSessionFactory<MV,AV>
implements SessionFactory<CC,MV,AV,SC>
A session factory composed of metadata, attribute, and context factories.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeSessionFactory(SessionFactoryConfiguration<CC, MV, AV, SC> configuration) Creates a session factory composed from metadata, attribute, and context factories. -
Method Summary
Modifier and TypeMethodDescriptionCreates a session from the specified identifier, metadata, attributes, and context.Returns the session attributes factory.Returns a session context factory.Returns the session meta data factory.Methods inherited from class CompositeImmutableSessionFactory
createImmutableSession, getCachePropertiesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiCacheEntryCreator
createValueAsyncMethods inherited from interface BiCacheEntryLocator
findValueAsync, tryValueAsyncMethods inherited from interface CacheEntryCreator
createValueMethods inherited from interface CacheEntryLocator
findValue, tryValueMethods inherited from interface CacheEntryRemover
purge, removeMethods inherited from interface ImmutableSessionFactory
createImmutableSession, createImmutableSession, findEntry, tryEntryMethods inherited from interface ImmutableSessionFactoryConfiguration
getCachePropertiesMethods inherited from interface SessionFactory
close, createEntry, purgeAsync, removeAsync
-
Constructor Details
-
CompositeSessionFactory
Creates a session factory composed from metadata, attribute, and context factories.- Parameters:
configuration- the configuration of this session factory
-
-
Method Details
-
getSessionMetaDataFactory
Description copied from interface:ImmutableSessionFactoryConfigurationReturns the session meta data factory.- Specified by:
getSessionMetaDataFactoryin interfaceImmutableSessionFactoryConfiguration<CC, MV extends Contextual<SC>>- Specified by:
getSessionMetaDataFactoryin interfaceSessionFactoryConfiguration<CC, MV extends Contextual<SC>, AV, SC>- Overrides:
getSessionMetaDataFactoryin classCompositeImmutableSessionFactory<MV extends Contextual<SC>, AV>- Returns:
- the session meta data factory.
-
getSessionAttributesFactory
Description copied from interface:ImmutableSessionFactoryConfigurationReturns the session attributes factory.- Specified by:
getSessionAttributesFactoryin interfaceImmutableSessionFactoryConfiguration<CC, MV extends Contextual<SC>>- Specified by:
getSessionAttributesFactoryin interfaceSessionFactoryConfiguration<CC, MV extends Contextual<SC>, AV, SC>- Overrides:
getSessionAttributesFactoryin classCompositeImmutableSessionFactory<MV extends Contextual<SC>, AV>- Returns:
- the session attributes factory.
-
getSessionContextFactory
Description copied from interface:SessionFactoryConfigurationReturns a session context factory.- Specified by:
getSessionContextFactoryin interfaceSessionFactoryConfiguration<CC, MV extends Contextual<SC>, AV, SC>- Returns:
- a session context factory.
-
createSession
Description copied from interface:SessionFactoryCreates a session from the specified identifier, metadata, attributes, and context.- Specified by:
createSessionin interfaceSessionFactory<CC, MV extends Contextual<SC>, AV, SC>- Parameters:
id- a session identifierentry- a map entry containing the metadata and attributes of the sessioncontext- the session context- Returns:
- a session from the specified identifier, metadata, attributes, and context.
-