public class ConsistentHashKeyRegistry<K> extends Object implements KeyRegistry<K>
| Constructor and Description |
|---|
ConsistentHashKeyRegistry(org.infinispan.distribution.ch.ConsistentHash hash,
Predicate<org.infinispan.remoting.transport.Address> filter,
Supplier<BlockingQueue<K>> queueFactory) |
| Modifier and Type | Method and Description |
|---|---|
Set<org.infinispan.remoting.transport.Address> |
getAddresses()
Returns the addresses for which pre-generated keys are available.
|
BlockingQueue<K> |
getKeys(org.infinispan.remoting.transport.Address address)
Returns a queue of pre-generated keys with affinity for the specified address.
|
public ConsistentHashKeyRegistry(org.infinispan.distribution.ch.ConsistentHash hash,
Predicate<org.infinispan.remoting.transport.Address> filter,
Supplier<BlockingQueue<K>> queueFactory)
public Set<org.infinispan.remoting.transport.Address> getAddresses()
KeyRegistrygetAddresses in interface KeyRegistry<K>public BlockingQueue<K> getKeys(org.infinispan.remoting.transport.Address address)
KeyRegistrygetKeys in interface KeyRegistry<K>address - the address of a cluster member.Copyright © 2023 JBoss by Red Hat. All rights reserved.