Interface KeyRegistry<K>

  • All Known Implementing Classes:
    ConsistentHashKeyRegistry

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.
    • Method Detail

      • 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