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 a
Session backed by a set of RemoteCache entries.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionHotRodSessionFactory(HotRodSessionFactoryConfiguration config, SessionMetaDataFactory<SessionMetaDataEntry<LC>> metaDataFactory, SessionAttributesFactory<MC, AV> attributesFactory, Supplier<LC> localContextFactory) Constructs a new session factory -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidexpired(org.infinispan.client.hotrod.event.ClientCacheEntryExpiredEvent<SessionAccessMetaDataKey> event) register(Consumer<ImmutableSession> listener) Methods inherited from class org.wildfly.clustering.web.cache.session.CompositeSessionFactory
createImmutableSession, createSession, createValue, findValue, getAttributesFactory, getMetaDataFactory, purge, remove, tryValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.web.cache.session.ImmutableSessionFactory
createImmutableSession
-
Constructor Details
-
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 Details
-
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
-