Interface KeyAffinityServiceFactory
public interface KeyAffinityServiceFactory
Factory for creating a key affinity service.
- Author:
- Paul Ferraro
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault <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 keys 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.
-
Field Details
-
INSTANCE
-
-
Method Details
-
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 keys using the specified generator.- Parameters:
cache- a cache for which keys should be generatedgenerator- a generator of cache keys- 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- a cache for which keys should be generatedgenerator- a generator of cache keysfilter- a filter restricting the addresses for which the service should generate keys- Returns:
- a key affinity service
-