Class SessionManagerNearCacheFactory<K,V>
- java.lang.Object
-
- org.wildfly.clustering.web.hotrod.session.SessionManagerNearCacheFactory<K,V>
-
- All Implemented Interfaces:
com.github.benmanes.caffeine.cache.RemovalListener<Object,Object>,Supplier<com.github.benmanes.caffeine.cache.Cache<K,org.infinispan.client.hotrod.MetadataValue<V>>>,NearCacheFactory<K,V>
public class SessionManagerNearCacheFactory<K,V> extends Object implements NearCacheFactory<K,V>, Supplier<com.github.benmanes.caffeine.cache.Cache<K,org.infinispan.client.hotrod.MetadataValue<V>>>, com.github.benmanes.caffeine.cache.RemovalListener<Object,Object>
A near-cache factory based on max-active-sessions.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description SessionManagerNearCacheFactory(Integer maxActiveSessions, org.wildfly.clustering.web.session.SessionAttributePersistenceStrategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.client.hotrod.near.NearCacheService<K,V>createService(org.infinispan.client.hotrod.event.impl.ClientListenerNotifier notifier)com.github.benmanes.caffeine.cache.Cache<K,org.infinispan.client.hotrod.MetadataValue<V>>get()voidonRemoval(Object key, Object value, com.github.benmanes.caffeine.cache.RemovalCause cause)
-
-
-
Constructor Detail
-
SessionManagerNearCacheFactory
public SessionManagerNearCacheFactory(Integer maxActiveSessions, org.wildfly.clustering.web.session.SessionAttributePersistenceStrategy strategy)
-
-
Method Detail
-
createService
public org.infinispan.client.hotrod.near.NearCacheService<K,V> createService(org.infinispan.client.hotrod.event.impl.ClientListenerNotifier notifier)
- Specified by:
createServicein interfaceNearCacheFactory<K,V>
-
get
public com.github.benmanes.caffeine.cache.Cache<K,org.infinispan.client.hotrod.MetadataValue<V>> get()
-
-