Class HotRodSessionFactory<MC,AV,SC>
java.lang.Object
org.wildfly.clustering.session.cache.CompositeImmutableSessionFactory<MV,AV>
org.wildfly.clustering.session.cache.CompositeSessionFactory<MC,SessionMetaDataEntry<SC>,AV,SC>
org.wildfly.clustering.session.infinispan.remote.HotRodSessionFactory<MC,AV,SC>
- Type Parameters:
MC- the marshalling context typeAV- the session attribute entry typeSC- the local context type
- All Implemented Interfaces:
AutoCloseable,org.wildfly.clustering.cache.BiCacheEntryCreator<String,,SessionMetaDataEntry<SC>, AV, Duration> org.wildfly.clustering.cache.BiCacheEntryLocator<String,,SessionMetaDataEntry<SC>, AV> org.wildfly.clustering.cache.CacheEntryCreator<String,,Map.Entry<SessionMetaDataEntry<SC>, AV>, Duration> org.wildfly.clustering.cache.CacheEntryLocator<String,,Map.Entry<SessionMetaDataEntry<SC>, AV>> org.wildfly.clustering.cache.CacheEntryRemover<String>,org.wildfly.clustering.server.Registrar<Consumer<org.wildfly.clustering.session.ImmutableSession>>,ImmutableSessionFactory<SessionMetaDataEntry<SC>,,AV> SessionFactory<MC,SessionMetaDataEntry<SC>, AV, SC>
public class HotRodSessionFactory<MC,AV,SC>
extends CompositeSessionFactory<MC,SessionMetaDataEntry<SC>,AV,SC>
implements org.wildfly.clustering.server.Registrar<Consumer<org.wildfly.clustering.session.ImmutableSession>>
Factory for creating a
Session backed by a set of RemoteCache entries.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionHotRodSessionFactory(RemoteCacheConfiguration config, SessionMetaDataFactory<SessionMetaDataEntry<SC>> metaDataFactory, SessionAttributesFactory<MC, AV> attributesFactory, Supplier<SC> 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
createSession, getAttributesFactory, getContextFactory, getMetaDataFactoryMethods inherited from class org.wildfly.clustering.session.cache.CompositeImmutableSessionFactory
createImmutableSession, getCachePropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.cache.BiCacheEntryCreator
createValueAsyncMethods inherited from interface org.wildfly.clustering.cache.BiCacheEntryLocator
findValueAsync, tryValueAsyncMethods inherited from interface org.wildfly.clustering.cache.CacheEntryCreator
createValueMethods inherited from interface org.wildfly.clustering.cache.CacheEntryLocator
findValue, tryValueMethods inherited from interface org.wildfly.clustering.cache.CacheEntryRemover
purge, removeMethods inherited from interface org.wildfly.clustering.session.cache.ImmutableSessionFactory
createImmutableSession, createImmutableSession, findEntry, getCacheProperties, tryEntryMethods inherited from interface org.wildfly.clustering.session.cache.SessionFactory
createEntry, purgeAsync, removeAsync
-
Constructor Details
-
HotRodSessionFactory
public HotRodSessionFactory(RemoteCacheConfiguration config, SessionMetaDataFactory<SessionMetaDataEntry<SC>> metaDataFactory, SessionAttributesFactory<MC, AV> attributesFactory, Supplier<SC> 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<SC>, AV, SC>
-
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>
-