Class CompositeImmutableSessionFactory<MV,AV>
java.lang.Object
org.wildfly.clustering.session.cache.CompositeImmutableSessionFactory<MV,AV>
- Type Parameters:
MV- the session metadata typeAV- the session attributes type
- All Implemented Interfaces:
BiCacheEntryLocator<String,MV, AV>, CacheEntryLocator<String, Map.Entry<MV, AV>>, ImmutableSessionFactory<MV, AV>, ImmutableSessionFactoryConfiguration<MV, AV>
- Direct Known Subclasses:
CompositeSessionFactory
public class CompositeImmutableSessionFactory<MV,AV>
extends Object
implements ImmutableSessionFactory<MV,AV>
An immutable session factory that delegates to immutable factories for metadata and attributes.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeImmutableSessionFactory(ImmutableSessionFactoryConfiguration<MV, AV> configuration) Creates an immutable session factory from the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptioncreateImmutableSession(String id, ImmutableSessionMetaData metaData, Map<String, Object> attributes) Creates an immutable session from the specified identifier, metadata, and attributes.Returns the properties of the associated cache.Returns the session attributes factory.Returns the session meta data factory.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiCacheEntryLocator
findValueAsync, tryValueAsyncMethods inherited from interface CacheEntryLocator
findValue, tryValueMethods inherited from interface ImmutableSessionFactory
createImmutableSession, findEntry, tryEntry
-
Constructor Details
-
CompositeImmutableSessionFactory
Creates an immutable session factory from the specified configuration.- Parameters:
configuration- a session factory configuration
-
-
Method Details
-
getSessionMetaDataFactory
Description copied from interface:ImmutableSessionFactoryConfigurationReturns the session meta data factory.- Specified by:
getSessionMetaDataFactoryin interfaceImmutableSessionFactoryConfiguration<MV,AV> - Returns:
- the session meta data factory.
-
getSessionAttributesFactory
Description copied from interface:ImmutableSessionFactoryConfigurationReturns the session attributes factory.- Specified by:
getSessionAttributesFactoryin interfaceImmutableSessionFactoryConfiguration<MV,AV> - Returns:
- the session attributes factory.
-
createImmutableSession
public ImmutableSession createImmutableSession(String id, ImmutableSessionMetaData metaData, Map<String, Object> attributes) Description copied from interface:ImmutableSessionFactoryCreates an immutable session from the specified identifier, metadata, and attributes.- Specified by:
createImmutableSessionin interfaceImmutableSessionFactory<MV,AV> - Parameters:
id- the identifier of this sessionmetaData- the metadata of this sessionattributes- the attributes of this session- Returns:
- an immutable session
-
getCacheProperties
Description copied from interface:ImmutableSessionFactoryConfigurationReturns the properties of the associated cache.- Specified by:
getCachePropertiesin interfaceImmutableSessionFactoryConfiguration<MV,AV> - Returns:
- the properties of the associated cache.
-