Class CompositeImmutableSessionFactory<V,L>
- java.lang.Object
-
- org.wildfly.clustering.web.cache.session.CompositeImmutableSessionFactory<V,L>
-
- All Implemented Interfaces:
Locator<String,Map.Entry<CompositeSessionMetaDataEntry<L>,V>>,ImmutableSessionFactory<CompositeSessionMetaDataEntry<L>,V>
- Direct Known Subclasses:
CompositeSessionFactory
public class CompositeImmutableSessionFactory<V,L> extends Object implements ImmutableSessionFactory<CompositeSessionMetaDataEntry<L>,V>
Generic immutable session factory implementation - independent of cache mapping strategy.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CompositeImmutableSessionFactory(ImmutableSessionMetaDataFactory<CompositeSessionMetaDataEntry<L>> metaDataFactory, ImmutableSessionAttributesFactory<V> attributesFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableSessioncreateImmutableSession(String id, ImmutableSessionMetaData metaData, ImmutableSessionAttributes attributes)Map.Entry<CompositeSessionMetaDataEntry<L>,V>findValue(String id)ImmutableSessionAttributesFactory<V>getAttributesFactory()ImmutableSessionMetaDataFactory<CompositeSessionMetaDataEntry<L>>getMetaDataFactory()Map.Entry<CompositeSessionMetaDataEntry<L>,V>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<CompositeSessionMetaDataEntry<L>> metaDataFactory, ImmutableSessionAttributesFactory<V> attributesFactory)
-
-
Method Detail
-
findValue
public Map.Entry<CompositeSessionMetaDataEntry<L>,V> findValue(String id)
-
tryValue
public Map.Entry<CompositeSessionMetaDataEntry<L>,V> tryValue(String id)
-
getMetaDataFactory
public ImmutableSessionMetaDataFactory<CompositeSessionMetaDataEntry<L>> getMetaDataFactory()
- Specified by:
getMetaDataFactoryin interfaceImmutableSessionFactory<V,L>
-
getAttributesFactory
public ImmutableSessionAttributesFactory<V> getAttributesFactory()
- Specified by:
getAttributesFactoryin interfaceImmutableSessionFactory<V,L>
-
createImmutableSession
public ImmutableSession createImmutableSession(String id, ImmutableSessionMetaData metaData, ImmutableSessionAttributes attributes)
- Specified by:
createImmutableSessionin interfaceImmutableSessionFactory<V,L>
-
-