public class Endpoint
extends java.lang.Object
implements java.io.Serializable
An endpoint completely specifies enough information to connect to a Cache Node.
| コンストラクタと説明 |
|---|
Endpoint()
Default constructor for a new Endpoint object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAddress()
Specifies the DNS address of the Cache Node.
|
java.lang.Integer |
getPort()
Specifies the port that the cache engine is listening on.
|
int |
hashCode() |
void |
setAddress(java.lang.String address)
Specifies the DNS address of the Cache Node.
|
void |
setPort(java.lang.Integer port)
Specifies the port 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)
Specifies the DNS address of the Cache Node.
|
Endpoint |
withPort(java.lang.Integer port)
Specifies the port that the cache engine is listening on.
|
public Endpoint()
public java.lang.String getAddress()
public void setAddress(java.lang.String address)
address - Specifies the DNS address of the Cache Node.public Endpoint withAddress(java.lang.String address)
Returns a reference to this object so that method calls can be chained together.
address - Specifies the DNS address of the Cache Node.public java.lang.Integer getPort()
public void setPort(java.lang.Integer port)
port - Specifies the port that the cache engine is listening on.public Endpoint withPort(java.lang.Integer port)
Returns a reference to this object so that method calls can be chained together.
port - Specifies the port that the cache engine is listening on.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object