Class HotRodSessionFactory<MC,AV,LC>
- java.lang.Object
-
- org.wildfly.clustering.web.cache.session.CompositeImmutableSessionFactory<MV,AV>
-
- org.wildfly.clustering.web.cache.session.CompositeSessionFactory<MC,SessionMetaDataEntry<LC>,AV,LC>
-
- org.wildfly.clustering.web.hotrod.session.HotRodSessionFactory<MC,AV,LC>
-
- Type Parameters:
MC- the marshalling context typeAV- the session attribute entry typeLC- the local context type
- All Implemented Interfaces:
AutoCloseable,Creator<String,Map.Entry<SessionMetaDataEntry<LC>,AV>,Duration>,Locator<String,Map.Entry<SessionMetaDataEntry<LC>,AV>>,Remover<String>,Registrar<Consumer<ImmutableSession>>,ImmutableSessionFactory<SessionMetaDataEntry<LC>,AV>,SessionFactory<MC,SessionMetaDataEntry<LC>,AV,LC>
public class HotRodSessionFactory<MC,AV,LC> extends CompositeSessionFactory<MC,SessionMetaDataEntry<LC>,AV,LC> implements Registrar<Consumer<ImmutableSession>>
Factory for creating aSessionbacked by a set ofRemoteCacheentries.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description HotRodSessionFactory(HotRodSessionFactoryConfiguration config, SessionMetaDataFactory<SessionMetaDataEntry<LC>> metaDataFactory, SessionAttributesFactory<MC,AV> attributesFactory, Supplier<LC> 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.ClientCacheEntryExpiredEvent<SessionAccessMetaDataKey> 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(HotRodSessionFactoryConfiguration config, SessionMetaDataFactory<SessionMetaDataEntry<LC>> metaDataFactory, SessionAttributesFactory<MC,AV> attributesFactory, Supplier<LC> 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<MC,SessionMetaDataEntry<LC>,AV,LC>- Overrides:
closein classCompositeSessionFactory<MC,SessionMetaDataEntry<LC>,AV,LC>
-
expired
public void expired(org.infinispan.client.hotrod.event.ClientCacheEntryExpiredEvent<SessionAccessMetaDataKey> event)
-
register
public Registration register(Consumer<ImmutableSession> listener)
-
-