Interface KeyAffinityServiceFactory
-
public interface KeyAffinityServiceFactoryFactory for creating a key affinity service.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <K> org.infinispan.affinity.KeyAffinityService<K>createService(org.infinispan.Cache<? extends K,?> cache, org.infinispan.affinity.KeyGenerator<K> generator)Creates a key affinity service for use with the specified cache, that generates local key using the specified generator.<K> org.infinispan.affinity.KeyAffinityService<K>createService(org.infinispan.Cache<? extends K,?> cache, org.infinispan.affinity.KeyGenerator<K> generator, Predicate<org.infinispan.remoting.transport.Address> filter)Creates a key affinity service for use with the specified cache, that generates key for members matching the specified filter, using the specified generator.
-
-
-
Method Detail
-
createService
default <K> org.infinispan.affinity.KeyAffinityService<K> createService(org.infinispan.Cache<? extends K,?> cache, org.infinispan.affinity.KeyGenerator<K> generator)Creates a key affinity service for use with the specified cache, that generates local key using the specified generator.- Parameters:
cache-generator-- Returns:
- a key affinity service
-
createService
<K> org.infinispan.affinity.KeyAffinityService<K> createService(org.infinispan.Cache<? extends K,?> cache, org.infinispan.affinity.KeyGenerator<K> generator, Predicate<org.infinispan.remoting.transport.Address> filter)Creates a key affinity service for use with the specified cache, that generates key for members matching the specified filter, using the specified generator.- Parameters:
cache-generator-- Returns:
- a key affinity service
-
-