@InterfaceStability.Evolving public class Endpoint extends java.lang.Object
| Constructor and Description |
|---|
Endpoint(java.lang.String listenerName,
SecurityProtocol securityProtocol,
java.lang.String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
host()
Returns advertised host name of this endpoint.
|
java.util.Optional<java.lang.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.
|
java.lang.String |
toString() |
public Endpoint(java.lang.String listenerName,
SecurityProtocol securityProtocol,
java.lang.String host,
int port)
public java.util.Optional<java.lang.String> listenerName()
public SecurityProtocol securityProtocol()
public java.lang.String host()
public int port()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object