ApplicationGatewayConnectionDraining Class
- java.
lang. Object - com.
microsoft. azure. management. network. ApplicationGatewayConnectionDraining
- com.
public class ApplicationGatewayConnectionDraining
Connection draining allows open connections to a backend server to be active for a specified time after the backend server got removed from the configuration.
Constructor Summary
Constructor | Description | |
---|---|---|
ApplicationGatewayConnectionDraining() |
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
drainTimeoutInSec()
Get the number of seconds connection draining is active. |
boolean |
enabled()
Get whether connection draining is enabled or not. |
Application |
withDrainTimeoutInSec(int drainTimeoutInSec)
Set the number of seconds connection draining is active. |
Application |
withEnabled(boolean enabled)
Set whether connection draining is enabled or not. |
Methods inherited from java.lang.Object
Constructor Details
ApplicationGatewayConnectionDraining
public ApplicationGatewayConnectionDraining()
Method Details
drainTimeoutInSec
public int drainTimeoutInSec()
Get the number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds.
Returns:
enabled
public boolean enabled()
Get whether connection draining is enabled or not.
Returns:
withDrainTimeoutInSec
public ApplicationGatewayConnectionDraining withDrainTimeoutInSec(int drainTimeoutInSec)
Set the number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds.
Parameters:
Returns:
withEnabled
public ApplicationGatewayConnectionDraining withEnabled(boolean enabled)
Set whether connection draining is enabled or not.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor