Package org.apache.kafka.common
Class Endpoint
- java.lang.Object
-
- org.apache.kafka.common.Endpoint
-
-
Constructor Summary
Constructors Constructor Description Endpoint(String listenerName, SecurityProtocol securityProtocol, String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
String
host()
Returns advertised host name of this endpoint.Optional<String>
listenerName()
Returns the listener name of this endpoint.int
port()
Returns the port to which the listener is bound.SecurityProtocol
securityProtocol()
Returns the security protocol of this endpoint.String
toString()
-
-
-
Constructor Detail
-
Endpoint
public Endpoint(String listenerName, SecurityProtocol securityProtocol, String host, int port)
-
-
Method Detail
-
listenerName
public Optional<String> listenerName()
Returns the listener name of this endpoint. This is non-empty for endpoints provided to broker plugins, but may be empty when used in clients.
-
securityProtocol
public SecurityProtocol securityProtocol()
Returns the security protocol of this endpoint.
-
host
public String host()
Returns advertised host name of this endpoint.
-
port
public int port()
Returns the port to which the listener is bound.
-
-