Class ConnectionDraining
java.lang.Object
com.amazonaws.services.elasticloadbalancing.model.ConnectionDraining
- All Implemented Interfaces:
Serializable, Cloneable
Information about the ConnectionDraining attribute.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanSpecifies whether connection draining is enabled for the load balancer.The maximum time, in seconds, to keep the existing connections open before deregistering the instances.inthashCode()Specifies whether connection draining is enabled for the load balancer.voidsetEnabled(Boolean enabled) Specifies whether connection draining is enabled for the load balancer.voidsetTimeout(Integer timeout) The maximum time, in seconds, to keep the existing connections open before deregistering the instances.toString()Returns a string representation of this object; useful for testing and debugging.withEnabled(Boolean enabled) Specifies whether connection draining is enabled for the load balancer.withTimeout(Integer timeout) The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
-
Constructor Details
-
ConnectionDraining
public ConnectionDraining()
-
-
Method Details
-
setEnabled
Specifies whether connection draining is enabled for the load balancer.
- Parameters:
enabled- Specifies whether connection draining is enabled for the load balancer.
-
getEnabled
Specifies whether connection draining is enabled for the load balancer.
- Returns:
- Specifies whether connection draining is enabled for the load balancer.
-
withEnabled
Specifies whether connection draining is enabled for the load balancer.
- Parameters:
enabled- Specifies whether connection draining is enabled for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEnabled
Specifies whether connection draining is enabled for the load balancer.
- Returns:
- Specifies whether connection draining is enabled for the load balancer.
-
setTimeout
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
- Parameters:
timeout- The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
-
getTimeout
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
- Returns:
- The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
-
withTimeout
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
- Parameters:
timeout- The maximum time, in seconds, to keep the existing connections open before deregistering the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
-