Class HotRodSessionFactory<DC,AV,SC>
java.lang.Object
org.wildfly.clustering.session.cache.CompositeImmutableSessionFactory<SessionMetaDataEntry<SC>, AV>
org.wildfly.clustering.session.cache.CompositeSessionFactory<DC, SessionMetaDataEntry<SC>, AV, SC>
org.wildfly.clustering.session.infinispan.remote.HotRodSessionFactory<DC,AV,SC>
- Type Parameters:
DC- the deployment context typeAV- the session attribute entry typeSC- the local context type
- All Implemented Interfaces:
AutoCloseable, BiCacheEntryCreator<String, SessionMetaDataEntry<SC>, AV, Map.Entry<Instant, Optional<Duration>>>, BiCacheEntryLocator<String, SessionMetaDataEntry<SC>, AV>, CacheEntryCreator<String, Map.Entry<SessionMetaDataEntry<SC>, AV>, Map.Entry<Instant, Optional<Duration>>>, CacheEntryLocator<String, Map.Entry<SessionMetaDataEntry<SC>, AV>>, CacheEntryRemover<String>, ImmutableSessionFactory<SessionMetaDataEntry<SC>, AV>, ImmutableSessionFactoryConfiguration<SessionMetaDataEntry<SC>, AV>, SessionFactory<DC, SessionMetaDataEntry<SC>, AV, SC>, SessionFactoryConfiguration<DC, SessionMetaDataEntry<SC>, AV, SC>
public class HotRodSessionFactory<DC,AV,SC>
extends CompositeSessionFactory<DC, SessionMetaDataEntry<SC>, AV, SC>
Factory for creating a
Session backed by a set of RemoteCache entries.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionHotRodSessionFactory(org.wildfly.clustering.session.infinispan.remote.HotRodSessionFactory.Configuration<DC, AV, SC> configuration) Constructs a new session factory. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidexpired(org.infinispan.client.hotrod.event.ClientCacheEntryExpiredEvent<SessionAccessMetaDataKey> event) Handles expiration events from the remote cluster.Methods inherited from class CompositeSessionFactory
createSession, getSessionAttributesFactory, getSessionContextFactory, getSessionMetaDataFactoryMethods inherited from class CompositeImmutableSessionFactory
createImmutableSession, getCachePropertiesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiCacheEntryCreator
createValueAsyncMethods inherited from interface BiCacheEntryLocator
findValueAsync, tryValueAsyncMethods inherited from interface CacheEntryCreator
createValueMethods inherited from interface CacheEntryLocator
findValue, tryValueMethods inherited from interface CacheEntryRemover
purge, removeMethods inherited from interface ImmutableSessionFactory
createImmutableSession, createImmutableSession, findEntry, tryEntryMethods inherited from interface ImmutableSessionFactoryConfiguration
getCachePropertiesMethods inherited from interface SessionFactory
createEntry, purgeAsync, removeAsync
-
Constructor Details
-
HotRodSessionFactory
-
-
Method Details
-
close
public void close() -
expired
public void expired(org.infinispan.client.hotrod.event.ClientCacheEntryExpiredEvent<SessionAccessMetaDataKey> event) Handles expiration events from the remote cluster.- Parameters:
event- a cache entry expiration event
-