Class HotRodSessionFactory<MC,AV,SC>
java.lang.Object
org.wildfly.clustering.session.cache.CompositeImmutableSessionFactory<SessionMetaDataEntry<SC>,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.BiCreator<String,,SessionMetaDataEntry<SC>, AV, Duration> org.wildfly.clustering.cache.BiLocator<String,,SessionMetaDataEntry<SC>, AV> org.wildfly.clustering.cache.Creator<String,,Map.Entry<SessionMetaDataEntry<SC>, AV>, Duration> org.wildfly.clustering.cache.Locator<String,,Map.Entry<SessionMetaDataEntry<SC>, 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<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
-
Field Summary
Fields inherited from interface org.wildfly.clustering.server.Registration
EMPTY -
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, 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.BiCreator
createValueAsyncMethods inherited from interface org.wildfly.clustering.cache.BiLocator
findValueAsync, tryValueAsyncMethods inherited from interface org.wildfly.clustering.cache.Creator
createValueMethods inherited from interface org.wildfly.clustering.session.cache.ImmutableSessionFactory
createImmutableSession, createImmutableSession, findEntry, getCacheProperties, tryEntryMethods inherited from interface org.wildfly.clustering.cache.Locator
findValue, tryValueMethods 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(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 interfaceorg.wildfly.clustering.server.Registration- 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>
-