Package org.wildfly.clustering.cache.infinispan.embedded.affinity
package org.wildfly.clustering.cache.infinispan.embedded.affinity
-
ClassDescriptionRegistry of queues of keys with affinity to the members of a consistent hash.A custom key affinity service implementation with the following distinct characteristics (as compared to
KeyAffinityServiceImpl):DefaultKeyAffinityService.getKeyForAddress(Address)will return a random key (instead of throwing an ISE) if the specified address does not own any segments. Uses a worker thread per address for which to generate keys. Minimal CPU utilization when key queues are full. Non-blocking topology change event handler.DefaultKeyAffinityService.getKeyForAddress(Address)calls will not block during topology change events.Factory for creating a key affinity service.KeyRegistry<K>A registry of keys with affinity to a given address.SimpleKeyAffinityServiceimplementation for use when co-location is not a requirement.