All Known Implementing Classes:
ConsistentHash.ConsistentHashMember, SimpleMember

public interface Member
Member of a cluster of connected command endpoints.
Author:
Koen Lavooij
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Optional<T>
    Get the endpoint of this Member given a protocol.
    boolean
     
    Returns the name of this Member.
    void
    Mark this member as suspect, i.e. suspected of being (temporarily) unavailable.
  • Method Details

    • name

      String name()
      Returns the name of this Member.
      Returns:
      the member name
    • getConnectionEndpoint

      <T> Optional<T> getConnectionEndpoint(Class<T> protocol)
      Get the endpoint of this Member given a protocol. Returns an empty optional if the protocol is not a supported endpoint of this member.
      Type Parameters:
      T - the protocol type
      Parameters:
      protocol - the expected
      Returns:
      the endpoint if this member supports the protocol. An empty optional otherwise.
    • local

      boolean local()
      Returns:
      True if the member is local. False if the member is remote or if this information is unknown.
    • suspect

      void suspect()
      Mark this member as suspect, i.e. suspected of being (temporarily) unavailable.