Class CompositeImmutableSessionFactory<MV,AV>
- java.lang.Object
-
- org.wildfly.clustering.web.cache.session.CompositeImmutableSessionFactory<MV,AV>
-
- All Implemented Interfaces:
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
Constructors Constructor Description CompositeImmutableSessionFactory(ImmutableSessionMetaDataFactory<MV> metaDataFactory, ImmutableSessionAttributesFactory<AV> attributesFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableSessioncreateImmutableSession(String id, ImmutableSessionMetaData metaData, ImmutableSessionAttributes attributes)Map.Entry<MV,AV>findValue(String id)ImmutableSessionAttributesFactory<AV>getAttributesFactory()ImmutableSessionMetaDataFactory<MV>getMetaDataFactory()Map.Entry<MV,AV>tryValue(String id)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.web.cache.session.ImmutableSessionFactory
createImmutableSession
-
-
-
-
Constructor Detail
-
CompositeImmutableSessionFactory
public CompositeImmutableSessionFactory(ImmutableSessionMetaDataFactory<MV> metaDataFactory, ImmutableSessionAttributesFactory<AV> attributesFactory)
-
-
Method Detail
-
getMetaDataFactory
public ImmutableSessionMetaDataFactory<MV> getMetaDataFactory()
- Specified by:
getMetaDataFactoryin interfaceImmutableSessionFactory<MV,AV>
-
getAttributesFactory
public ImmutableSessionAttributesFactory<AV> getAttributesFactory()
- Specified by:
getAttributesFactoryin interfaceImmutableSessionFactory<MV,AV>
-
createImmutableSession
public ImmutableSession createImmutableSession(String id, ImmutableSessionMetaData metaData, ImmutableSessionAttributes attributes)
- Specified by:
createImmutableSessionin interfaceImmutableSessionFactory<MV,AV>
-
-