public class Listener
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the properties of a Listener for the LoadBalancer.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
port
The port that is used by the Listener.
|
private java.lang.String |
protocol
The protocol that is used by the Listener.
|
Constructor and Description |
---|
Listener() |
Modifier and Type | Method and Description |
---|---|
Listener |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getPort()
The port that is used by the Listener.
|
java.lang.String |
getProtocol()
The protocol that is used by the Listener.
|
int |
hashCode() |
void |
setPort(java.lang.Integer port)
The port that is used by the Listener.
|
void |
setProtocol(java.lang.String protocol)
The protocol that is used by the Listener.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Listener |
withPort(java.lang.Integer port)
The port that is used by the Listener.
|
Listener |
withProtocol(java.lang.String protocol)
The protocol that is used by the Listener.
|
private java.lang.String protocol
The protocol that is used by the Listener.
private java.lang.Integer port
The port that is used by the Listener.
public void setProtocol(java.lang.String protocol)
The protocol that is used by the Listener.
protocol
- The protocol that is used by the Listener.public java.lang.String getProtocol()
The protocol that is used by the Listener.
public Listener withProtocol(java.lang.String protocol)
The protocol that is used by the Listener.
protocol
- The protocol that is used by the Listener.public void setPort(java.lang.Integer port)
The port that is used by the Listener.
port
- The port that is used by the Listener.public java.lang.Integer getPort()
The port that is used by the Listener.
public Listener withPort(java.lang.Integer port)
The port that is used by the Listener.
port
- The port that is used by the Listener.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 Listener clone()
clone
in class java.lang.Object