Class SessionManagerNearCacheFactory
java.lang.Object
org.wildfly.clustering.session.infinispan.remote.SessionManagerNearCacheFactory
- All Implemented Interfaces:
org.infinispan.client.hotrod.near.NearCacheFactory
public class SessionManagerNearCacheFactory
extends Object
implements org.infinispan.client.hotrod.near.NearCacheFactory
A near-cache factory based on max-active-sessions.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionSessionManagerNearCacheFactory(EvictionConfiguration configuration) Creates the near cache factory for this session manager. -
Method Summary
Modifier and TypeMethodDescription<K,V> org.infinispan.client.hotrod.near.NearCache <K, V> createNearCache(org.infinispan.client.hotrod.configuration.NearCacheConfiguration config, BiConsumer<K, org.infinispan.client.hotrod.MetadataValue<V>> removedConsumer)
-
Constructor Details
-
SessionManagerNearCacheFactory
Creates the near cache factory for this session manager.- Parameters:
configuration- the eviction configuration
-
-
Method Details
-
createNearCache
public <K,V> org.infinispan.client.hotrod.near.NearCache<K,V> createNearCache(org.infinispan.client.hotrod.configuration.NearCacheConfiguration config, BiConsumer<K, org.infinispan.client.hotrod.MetadataValue<V>> removedConsumer) - Specified by:
createNearCachein interfaceorg.infinispan.client.hotrod.near.NearCacheFactory
-