@InterfaceStability.Evolving public class Endpoint extends Object
Constructor and Description |
---|
Endpoint(String listenerName,
SecurityProtocol securityProtocol,
String host,
int port) |
Modifier and Type | Method and 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() |
public Endpoint(String listenerName, SecurityProtocol securityProtocol, String host, int port)
public Optional<String> listenerName()
public SecurityProtocol securityProtocol()
public String host()
public int port()