Class CompositeSessionFactory<C,V,L>
- java.lang.Object
-
- org.wildfly.clustering.web.cache.session.CompositeImmutableSessionFactory<V,L>
-
- org.wildfly.clustering.web.cache.session.CompositeSessionFactory<C,V,L>
-
- Type Parameters:
C- the ServletContext specification typeV- the session attribute value typeL- the local context type
- All Implemented Interfaces:
AutoCloseable,org.wildfly.clustering.ee.Creator<String,Map.Entry<CompositeSessionMetaDataEntry<L>,V>,Void>,org.wildfly.clustering.ee.Locator<String,Map.Entry<CompositeSessionMetaDataEntry<L>,V>>,org.wildfly.clustering.ee.Remover<String>,ImmutableSessionFactory<CompositeSessionMetaDataEntry<L>,V>,SessionFactory<C,CompositeSessionMetaDataEntry<L>,V,L>
public class CompositeSessionFactory<C,V,L> extends CompositeImmutableSessionFactory<V,L> implements SessionFactory<C,CompositeSessionMetaDataEntry<L>,V,L>
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CompositeSessionFactory(SessionMetaDataFactory<CompositeSessionMetaDataEntry<L>> metaDataFactory, SessionAttributesFactory<C,V> attributesFactory, LocalContextFactory<L> localContextFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ImmutableSessioncreateImmutableSession(String id, ImmutableSessionMetaData metaData, ImmutableSessionAttributes attributes)Session<L>createSession(String id, Map.Entry<CompositeSessionMetaDataEntry<L>,V> entry, C context)Map.Entry<CompositeSessionMetaDataEntry<L>,V>createValue(String id, Void context)Map.Entry<CompositeSessionMetaDataEntry<L>,V>findValue(String id)SessionAttributesFactory<C,V>getAttributesFactory()SessionMetaDataFactory<CompositeSessionMetaDataEntry<L>>getMetaDataFactory()booleanpurge(String id)booleanremove(String id)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
-
CompositeSessionFactory
public CompositeSessionFactory(SessionMetaDataFactory<CompositeSessionMetaDataEntry<L>> metaDataFactory, SessionAttributesFactory<C,V> attributesFactory, LocalContextFactory<L> localContextFactory)
-
-
Method Detail
-
createValue
public Map.Entry<CompositeSessionMetaDataEntry<L>,V> createValue(String id, Void context)
-
findValue
public Map.Entry<CompositeSessionMetaDataEntry<L>,V> findValue(String id)
-
tryValue
public Map.Entry<CompositeSessionMetaDataEntry<L>,V> tryValue(String id)
-
remove
public boolean remove(String id)
- Specified by:
removein interfaceorg.wildfly.clustering.ee.Remover<C>
-
purge
public boolean purge(String id)
- Specified by:
purgein interfaceorg.wildfly.clustering.ee.Remover<C>
-
getMetaDataFactory
public SessionMetaDataFactory<CompositeSessionMetaDataEntry<L>> getMetaDataFactory()
- Specified by:
getMetaDataFactoryin interfaceImmutableSessionFactory<C,V>- Specified by:
getMetaDataFactoryin interfaceSessionFactory<C,CompositeSessionMetaDataEntry<L>,V,L>- Overrides:
getMetaDataFactoryin classCompositeImmutableSessionFactory<V,L>
-
getAttributesFactory
public SessionAttributesFactory<C,V> getAttributesFactory()
- Specified by:
getAttributesFactoryin interfaceImmutableSessionFactory<C,V>- Specified by:
getAttributesFactoryin interfaceSessionFactory<C,CompositeSessionMetaDataEntry<L>,V,L>- Overrides:
getAttributesFactoryin classCompositeImmutableSessionFactory<V,L>
-
createSession
public Session<L> createSession(String id, Map.Entry<CompositeSessionMetaDataEntry<L>,V> entry, C context)
- Specified by:
createSessionin interfaceSessionFactory<C,CompositeSessionMetaDataEntry<L>,V,L>
-
createImmutableSession
public ImmutableSession createImmutableSession(String id, ImmutableSessionMetaData metaData, ImmutableSessionAttributes attributes)
- Specified by:
createImmutableSessionin interfaceImmutableSessionFactory<C,V>- Overrides:
createImmutableSessionin classCompositeImmutableSessionFactory<V,L>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSessionFactory<C,CompositeSessionMetaDataEntry<L>,V,L>
-
-