public class ConnectionDraining extends Object implements Serializable
Information about the ConnectionDraining
attribute.
Constructor and Description |
---|
ConnectionDraining() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Boolean |
getEnabled()
Specifies whether connection draining is enabled for the load balancer.
|
Integer |
getTimeout()
The maximum time, in seconds, to keep the existing connections open
before deregistering the instances.
|
int |
hashCode() |
Boolean |
isEnabled()
Specifies whether connection draining is enabled for the load balancer.
|
void |
setEnabled(Boolean enabled)
Specifies whether connection draining is enabled for the load balancer.
|
void |
setTimeout(Integer timeout)
The maximum time, in seconds, to keep the existing connections open
before deregistering the instances.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ConnectionDraining |
withEnabled(Boolean enabled)
Specifies whether connection draining is enabled for the load balancer.
|
ConnectionDraining |
withTimeout(Integer timeout)
The maximum time, in seconds, to keep the existing connections open
before deregistering the instances.
|
public Boolean isEnabled()
Specifies whether connection draining is enabled for the load balancer.
Specifies whether connection draining is enabled for the load balancer.
public Boolean getEnabled()
Specifies whether connection draining is enabled for the load balancer.
Specifies whether connection draining is enabled for the load balancer.
public void setEnabled(Boolean enabled)
Specifies whether connection draining is enabled for the load balancer.
enabled
- Specifies whether connection draining is enabled for the load balancer.
public ConnectionDraining withEnabled(Boolean enabled)
Specifies whether connection draining is enabled for the load balancer.
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 Integer getTimeout()
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
public void setTimeout(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 ConnectionDraining withTimeout(Integer timeout)
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
Returns a reference to this object so that method calls can be chained together.
timeout
- The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.