public class Endpoint
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the information required for client programs to connect to a cache node.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
address
The DNS hostname of the cache node.
|
private java.lang.Integer |
port
The port number that the cache engine is listening on.
|
Constructor and Description |
---|
Endpoint() |
Modifier and Type | Method and Description |
---|---|
Endpoint |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAddress()
The DNS hostname of the cache node.
|
java.lang.Integer |
getPort()
The port number that the cache engine is listening on.
|
int |
hashCode() |
void |
setAddress(java.lang.String address)
The DNS hostname of the cache node.
|
void |
setPort(java.lang.Integer port)
The port number that the cache engine is listening on.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Endpoint |
withAddress(java.lang.String address)
The DNS hostname of the cache node.
|
Endpoint |
withPort(java.lang.Integer port)
The port number that the cache engine is listening on.
|
private java.lang.String address
The DNS hostname of the cache node.
private java.lang.Integer port
The port number that the cache engine is listening on.
public void setAddress(java.lang.String address)
The DNS hostname of the cache node.
address
- The DNS hostname of the cache node.public java.lang.String getAddress()
The DNS hostname of the cache node.
public Endpoint withAddress(java.lang.String address)
The DNS hostname of the cache node.
address
- The DNS hostname of the cache node.public void setPort(java.lang.Integer port)
The port number that the cache engine is listening on.
port
- The port number that the cache engine is listening on.public java.lang.Integer getPort()
The port number that the cache engine is listening on.
public Endpoint withPort(java.lang.Integer port)
The port number that the cache engine is listening on.
port
- The port number that the cache engine is listening on.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Endpoint clone()
clone
in class java.lang.Object