Class HotRodSessionFactory<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>
-
- org.wildfly.clustering.web.hotrod.session.HotRodSessionFactory<C,V,L>
-
- All Implemented Interfaces:
AutoCloseable,Creator<String,Map.Entry<CompositeSessionMetaDataEntry<L>,V>,SessionCreationMetaData>,Locator<String,Map.Entry<CompositeSessionMetaDataEntry<L>,V>>,Remover<String>,Registrar<Consumer<ImmutableSession>>,ImmutableSessionFactory<CompositeSessionMetaDataEntry<L>,V>,SessionFactory<C,CompositeSessionMetaDataEntry<L>,V,L>
public class HotRodSessionFactory<C,V,L> extends CompositeSessionFactory<C,V,L> implements Registrar<Consumer<ImmutableSession>>
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description HotRodSessionFactory(HotRodConfiguration config, SessionMetaDataFactory<CompositeSessionMetaDataEntry<L>> metaDataFactory, SessionAttributesFactory<C,V> attributesFactory, LocalContextFactory<L> localContextFactory)Constructs a new session factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidexpired(org.infinispan.client.hotrod.event.ClientCacheEntryCustomEvent<byte[]> event)Registrationregister(Consumer<ImmutableSession> listener)-
Methods inherited from class org.wildfly.clustering.web.cache.session.CompositeSessionFactory
createImmutableSession, createSession, createValue, findValue, getAttributesFactory, getMetaDataFactory, purge, remove, tryValue
-
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
-
HotRodSessionFactory
public HotRodSessionFactory(HotRodConfiguration config, SessionMetaDataFactory<CompositeSessionMetaDataEntry<L>> metaDataFactory, SessionAttributesFactory<C,V> attributesFactory, LocalContextFactory<L> localContextFactory)
Constructs a new session factory- Parameters:
config-metaDataFactory-attributesFactory-localContextFactory-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSessionFactory<C,CompositeSessionMetaDataEntry<L>,V,L>- Overrides:
closein classCompositeSessionFactory<C,V,L>
-
expired
public void expired(org.infinispan.client.hotrod.event.ClientCacheEntryCustomEvent<byte[]> event)
-
register
public Registration register(Consumer<ImmutableSession> listener)
-
-