Interface PeerSelector<E>

All Known Implementing Classes:
PeerSelectors
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Beta
@FunctionalInterface
public interface PeerSelector<E>
Peer selector.
  • Method Summary

    Modifier and Type Method Description
    Collection<io.atomix.cluster.MemberId> select​(E entry, io.atomix.cluster.ClusterMembershipService membership)
    Selects the peers to update for the given entry.
  • Method Details

    • select

      Collection<io.atomix.cluster.MemberId> select​(E entry, io.atomix.cluster.ClusterMembershipService membership)
      Selects the peers to update for the given entry.
      Parameters:
      entry - the entry for which to select peers
      membership - the cluster membership service
      Returns:
      a collection of peers to update