Type Parameters:
K - the cache key type
All Known Implementing Classes:
ConsistentHashKeyRegistry

public interface KeyRegistry<K>
A registry of keys with affinity to a given address.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<org.infinispan.remoting.transport.Address>
    Returns the addresses for which pre-generated keys are available.
    getKeys(org.infinispan.remoting.transport.Address address)
    Returns a queue of pre-generated keys with affinity for the specified address.
  • Method Details

    • getAddresses

      Set<org.infinispan.remoting.transport.Address> getAddresses()
      Returns the addresses for which pre-generated keys are available.
      Returns:
      a set of cluster members
    • getKeys

      BlockingQueue<K> getKeys(org.infinispan.remoting.transport.Address address)
      Returns a queue of pre-generated keys with affinity for the specified address.
      Parameters:
      address - the address of a cluster member.
      Returns:
      a queue of pre-generated keys