Class RaftVoterEndpoint

java.lang.Object
org.apache.kafka.clients.admin.RaftVoterEndpoint

@Stable public class RaftVoterEndpoint extends Object
An endpoint for a raft quorum voter.
  • Constructor Details

    • RaftVoterEndpoint

      public RaftVoterEndpoint(String listener, String host, int port)
      Create an endpoint for a metadata quorum voter.
      Parameters:
      listener - The human-readable name for this endpoint. For example, CONTROLLER.
      host - The DNS hostname for this endpoint.
      port - The network port for this endpoint.
  • Method Details

    • listener

      public String listener()
      The listener name for this endpoint.
    • name

      @Deprecated(since="4.1", forRemoval=true) public String name()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.1. Use listener() instead. This function will be removed in 5.0.
    • host

      public String host()
    • port

      public int port()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object