Uses of Interface
org.infinispan.affinity.KeyGenerator
Package
Description
This package contains the
KeyAffinityService
interfaces which allow user code to determine mapping of keys onto nodes-
Uses of KeyGenerator in org.infinispan.affinity
Modifier and TypeMethodDescriptionstatic <K,
V> KeyAffinityService<K> KeyAffinityServiceFactory.newKeyAffinityService
(Cache<K, V> cache, Collection<Address> filter, KeyGenerator<K> keyGenerator, Executor ex, int keyBufferSize) static <K,
V> KeyAffinityService<K> KeyAffinityServiceFactory.newKeyAffinityService
(Cache<K, V> cache, Collection<Address> filter, KeyGenerator<K> keyGenerator, Executor ex, int keyBufferSize, boolean start) Creates a service that would only generate keys for addresses specified in filter.static <K,
V> KeyAffinityService<K> KeyAffinityServiceFactory.newKeyAffinityService
(Cache<K, V> cache, Executor ex, KeyGenerator<K> keyGenerator, int keyBufferSize) static <K,
V> KeyAffinityService<K> KeyAffinityServiceFactory.newKeyAffinityService
(Cache<K, V> cache, Executor ex, KeyGenerator<K> keyGenerator, int keyBufferSize, boolean start) Creates anKeyAffinityService
instance that generates keys mapped to all addresses in the cluster.static <K,
V> KeyAffinityService<K> KeyAffinityServiceFactory.newLocalKeyAffinityService
(Cache<K, V> cache, KeyGenerator<K> keyGenerator, Executor ex, int keyBufferSize) static <K,
V> KeyAffinityService<K> KeyAffinityServiceFactory.newLocalKeyAffinityService
(Cache<K, V> cache, KeyGenerator<K> keyGenerator, Executor ex, int keyBufferSize, boolean start) Created an service that only generates keys for the local address. -
Uses of KeyGenerator in org.infinispan.affinity.impl
Modifier and TypeClassDescriptionclass
Key provider that relies onRandom
's distribution to generate keys.ModifierConstructorDescriptionKeyAffinityServiceImpl
(Executor executor, Cache<? extends K, ?> cache, KeyGenerator<? extends K> keyGenerator, int bufferSize, Collection<Address> filter, boolean start)