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 booleanequals(Object o)inthashCode()Stringhost()Returns advertised host name of this endpoint.Optional<String>listenerName()Returns the listener name of this endpoint.intport()Returns the port to which the listener is bound.SecurityProtocolsecurityProtocol()Returns the security protocol of this endpoint.StringtoString()
-
-
-
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.
-
-