public class Endpoint extends Object implements Serializable
Represents the information required for client programs to connect to a cache node.
Constructor and Description |
---|
Endpoint()
Default constructor for a new Endpoint object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAddress()
The DNS hostname of the cache node.
|
Integer |
getPort()
The port number that the cache engine is listening on.
|
int |
hashCode() |
void |
setAddress(String address)
The DNS hostname of the cache node.
|
void |
setPort(Integer port)
The port number that the cache engine is listening on.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Endpoint |
withAddress(String address)
The DNS hostname of the cache node.
|
Endpoint |
withPort(Integer port)
The port number that the cache engine is listening on.
|
public Endpoint()
public String getAddress()
public void setAddress(String address)
address
- The DNS hostname of the cache node.public Endpoint withAddress(String address)
Returns a reference to this object so that method calls can be chained together.
address
- The DNS hostname of the cache node.public Integer getPort()
public void setPort(Integer port)
port
- The port number that the cache engine is listening on.public Endpoint withPort(Integer port)
Returns a reference to this object so that method calls can be chained together.
port
- The port number that the cache engine is listening on.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.