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>
- Direct Known Subclasses:
CompositeSessionFactory
public class CompositeImmutableSessionFactory<MV,AV>
extends Object
implements ImmutableSessionFactory<MV,AV>
Generic immutable session factory implementation - independent of cache mapping strategy.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeImmutableSessionFactory(ImmutableSessionMetaDataFactory<MV> metaDataFactory, ImmutableSessionAttributesFactory<AV> attributesFactory, CacheProperties properties) -
Method Summary
Modifier and TypeMethodDescriptioncreateImmutableSession(String id, ImmutableSessionMetaData metaData, Map<String, Object> attributes) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.cache.BiCacheEntryLocator
findValueAsync, tryValueAsyncMethods inherited from interface org.wildfly.clustering.cache.CacheEntryLocator
findValue, tryValueMethods inherited from interface org.wildfly.clustering.session.cache.ImmutableSessionFactory
createImmutableSession, findEntry, tryEntry
-
Constructor Details
-
CompositeImmutableSessionFactory
public CompositeImmutableSessionFactory(ImmutableSessionMetaDataFactory<MV> metaDataFactory, ImmutableSessionAttributesFactory<AV> attributesFactory, CacheProperties properties)
-
-
Method Details
-
getMetaDataFactory
- Specified by:
getMetaDataFactoryin interfaceImmutableSessionFactory<MV,AV>
-
getAttributesFactory
- Specified by:
getAttributesFactoryin interfaceImmutableSessionFactory<MV,AV>
-
createImmutableSession
public ImmutableSession createImmutableSession(String id, ImmutableSessionMetaData metaData, Map<String, Object> attributes) - Specified by:
createImmutableSessionin interfaceImmutableSessionFactory<MV,AV>
-
getCacheProperties
- Specified by:
getCachePropertiesin interfaceImmutableSessionFactory<MV,AV>
-