public class ConnectionDraining
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about the ConnectionDraining
attribute.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
enabled
Specifies whether connection draining is enabled for the load balancer.
|
private java.lang.Integer |
timeout
The maximum time, in seconds, to keep the existing connections open
before deregistering the instances.
|
Constructor and Description |
---|
ConnectionDraining() |
Modifier and Type | Method and Description |
---|---|
ConnectionDraining |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getEnabled()
Specifies whether connection draining is enabled for the load balancer.
|
java.lang.Integer |
getTimeout()
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)
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)
The maximum time, in seconds, to keep the existing connections open
before deregistering the instances.
|
private java.lang.Boolean enabled
Specifies whether connection draining is enabled for the load balancer.
private java.lang.Integer timeout
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
public void setEnabled(java.lang.Boolean enabled)
Specifies whether connection draining is enabled for the load balancer.
enabled
- Specifies whether connection draining is enabled for the load
balancer.public java.lang.Boolean getEnabled()
Specifies whether connection draining is enabled for the load balancer.
public ConnectionDraining withEnabled(java.lang.Boolean enabled)
Specifies whether connection draining is enabled for the load balancer.
enabled
- Specifies whether connection draining is enabled for the load
balancer.public java.lang.Boolean isEnabled()
Specifies whether connection draining is enabled for the load balancer.
public void setTimeout(java.lang.Integer timeout)
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
timeout
- The maximum time, in seconds, to keep the existing connections
open before deregistering the instances.public java.lang.Integer getTimeout()
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
public ConnectionDraining withTimeout(java.lang.Integer timeout)
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
timeout
- 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.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 ConnectionDraining clone()
clone
in class java.lang.Object