public class ConnectionDraining
extends java.lang.Object
implements java.io.Serializable
The ConnectionDraining data type.
| Constructor and Description |
|---|
ConnectionDraining() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getEnabled()
Specifies whether connection draining is enabled for the load
balancer.
|
java.lang.Integer |
getTimeout()
Specifies the maximum time (in seconds) to keep the existing
connections open before deregistering the instances.
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
Specifies whether connection draining is enabled for the load
balancer.
|
void |
setEnabled(java.lang.Boolean enabled)
Specifies whether connection draining is enabled for the load
balancer.
|
void |
setTimeout(java.lang.Integer timeout)
Specifies the maximum time (in seconds) to keep the existing
connections open before deregistering the instances.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ConnectionDraining |
withEnabled(java.lang.Boolean enabled)
Specifies whether connection draining is enabled for the load
balancer.
|
ConnectionDraining |
withTimeout(java.lang.Integer timeout)
Specifies the maximum time (in seconds) to keep the existing
connections open before deregistering the instances.
|
public java.lang.Boolean isEnabled()
public void setEnabled(java.lang.Boolean enabled)
enabled - Specifies whether connection draining is enabled for the load
balancer.public ConnectionDraining withEnabled(java.lang.Boolean enabled)
Returns a reference to this object so that method calls can be chained together.
enabled - Specifies whether connection draining is enabled for the load
balancer.public java.lang.Boolean getEnabled()
public java.lang.Integer getTimeout()
public void setTimeout(java.lang.Integer timeout)
timeout - Specifies the maximum time (in seconds) to keep the existing
connections open before deregistering the instances.public ConnectionDraining withTimeout(java.lang.Integer timeout)
Returns a reference to this object so that method calls can be chained together.
timeout - Specifies the maximum time (in seconds) to keep the existing
connections open before deregistering the instances.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object