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:
org.wildfly.clustering.cache.BiLocator<String,,MV, AV> org.wildfly.clustering.cache.Locator<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, org.wildfly.clustering.cache.CacheProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionorg.wildfly.clustering.session.ImmutableSessioncreateImmutableSession(String id, org.wildfly.clustering.session.ImmutableSessionMetaData metaData, Map<String, Object> attributes) org.wildfly.clustering.cache.CachePropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.cache.BiLocator
findValueAsync, tryValueAsyncMethods inherited from interface org.wildfly.clustering.session.cache.ImmutableSessionFactory
createImmutableSession, findEntry, tryEntryMethods inherited from interface org.wildfly.clustering.cache.Locator
findValue, tryValue
-
Constructor Details
-
CompositeImmutableSessionFactory
public CompositeImmutableSessionFactory(ImmutableSessionMetaDataFactory<MV> metaDataFactory, ImmutableSessionAttributesFactory<AV> attributesFactory, org.wildfly.clustering.cache.CacheProperties properties)
-
-
Method Details
-
getMetaDataFactory
- Specified by:
getMetaDataFactoryin interfaceImmutableSessionFactory<MV,AV>
-
getAttributesFactory
- Specified by:
getAttributesFactoryin interfaceImmutableSessionFactory<MV,AV>
-
createImmutableSession
public org.wildfly.clustering.session.ImmutableSession createImmutableSession(String id, org.wildfly.clustering.session.ImmutableSessionMetaData metaData, Map<String, Object> attributes) - Specified by:
createImmutableSessionin interfaceImmutableSessionFactory<MV,AV>
-
getCacheProperties
public org.wildfly.clustering.cache.CacheProperties getCacheProperties()- Specified by:
getCachePropertiesin interfaceImmutableSessionFactory<MV,AV>
-