Class HotRodSessionFactory<MC,AV,LC>
java.lang.Object
org.wildfly.clustering.session.cache.CompositeImmutableSessionFactory<SessionMetaDataEntry<LC>,AV>
org.wildfly.clustering.session.cache.CompositeSessionFactory<MC,SessionMetaDataEntry<LC>,AV,LC>
org.wildfly.clustering.session.infinispan.remote.HotRodSessionFactory<MC,AV,LC>
- Type Parameters:
MC- the marshalling context typeAV- the session attribute entry typeLC- the local context type
- All Implemented Interfaces:
AutoCloseable,org.wildfly.clustering.cache.BiCreator<String,,SessionMetaDataEntry<LC>, AV, Duration> org.wildfly.clustering.cache.BiLocator<String,,SessionMetaDataEntry<LC>, AV> org.wildfly.clustering.cache.Creator<String,,Map.Entry<SessionMetaDataEntry<LC>, AV>, Duration> org.wildfly.clustering.cache.Locator<String,,Map.Entry<SessionMetaDataEntry<LC>, AV>> org.wildfly.clustering.cache.Remover<String>,org.wildfly.clustering.server.Registrar<Consumer<org.wildfly.clustering.session.ImmutableSession>>,org.wildfly.clustering.server.Registration,ImmutableSessionFactory<SessionMetaDataEntry<LC>,,AV> SessionFactory<MC,SessionMetaDataEntry<LC>, AV, LC>
public class HotRodSessionFactory<MC,AV,LC>
extends CompositeSessionFactory<MC,SessionMetaDataEntry<LC>,AV,LC>
implements org.wildfly.clustering.server.Registrar<Consumer<org.wildfly.clustering.session.ImmutableSession>>
Factory for creating a
backed by a set of
invalid reference
org.wildfly.clustering.web.session.Session
RemoteCache entries.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.server.Registration
EMPTY -
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) org.wildfly.clustering.server.RegistrationMethods inherited from class org.wildfly.clustering.session.cache.CompositeSessionFactory
createImmutableSession, createSession, getAttributesFactory, getMetaDataFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.cache.BiCreator
createValueAsyncMethods inherited from interface org.wildfly.clustering.cache.BiLocator
findValueAsyncMethods inherited from interface org.wildfly.clustering.cache.Creator
createValueMethods inherited from interface org.wildfly.clustering.session.cache.ImmutableSessionFactory
createImmutableSession, findEntry, tryEntryMethods inherited from interface org.wildfly.clustering.cache.Locator
findValue, tryValue, tryValueAsyncMethods inherited from interface org.wildfly.clustering.cache.Remover
purge, removeMethods inherited from interface org.wildfly.clustering.session.cache.SessionFactory
createEntry, purgeAsync, removeAsync
-
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 interfaceorg.wildfly.clustering.server.Registration- Specified by:
closein interfaceSessionFactory<MC,SessionMetaDataEntry<LC>, AV, LC>
-
expired
public void expired(org.infinispan.client.hotrod.event.ClientCacheEntryExpiredEvent<SessionAccessMetaDataKey> event) -
register
public org.wildfly.clustering.server.Registration register(Consumer<org.wildfly.clustering.session.ImmutableSession> listener) - Specified by:
registerin interfaceorg.wildfly.clustering.server.Registrar<MC>
-