Interface ElasticLoadBalancingV2AsyncWaiter
-
- All Superinterfaces:
AutoCloseable
,SdkAutoCloseable
@Generated("software.amazon.awssdk:codegen") public interface ElasticLoadBalancingV2AsyncWaiter extends SdkAutoCloseable
Waiter utility class that polls a resource until a desired state is reached or until it is determined that the resource will never enter into the desired state. This can be created using the staticbuilder()
method
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ElasticLoadBalancingV2AsyncWaiter.Builder
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
-
-
-
Method Detail
-
waitUntilLoadBalancerAvailable
default CompletableFuture<WaiterResponse<DescribeLoadBalancersResponse>> waitUntilLoadBalancerAvailable(DescribeLoadBalancersRequest describeLoadBalancersRequest)
PollsElasticLoadBalancingV2AsyncClient.describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
API until the desired conditionLoadBalancerAvailable
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeLoadBalancersRequest
- the request to be used for polling- Returns:
- CompletableFuture containing the WaiterResponse. It completes successfully when the resource enters into a desired state or exceptionally when it is determined that the resource will never enter into the desired state.
-
waitUntilLoadBalancerAvailable
default CompletableFuture<WaiterResponse<DescribeLoadBalancersResponse>> waitUntilLoadBalancerAvailable(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest)
PollsElasticLoadBalancingV2AsyncClient.describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
API until the desired conditionLoadBalancerAvailable
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder without the need to create one manually using
DescribeLoadBalancersRequest.builder()
- Parameters:
describeLoadBalancersRequest
- The consumer that will configure the request to be used for polling- Returns:
- CompletableFuture of the WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilLoadBalancerAvailable
default CompletableFuture<WaiterResponse<DescribeLoadBalancersResponse>> waitUntilLoadBalancerAvailable(DescribeLoadBalancersRequest describeLoadBalancersRequest, WaiterOverrideConfiguration overrideConfig)
PollsElasticLoadBalancingV2AsyncClient.describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
API until the desired conditionLoadBalancerAvailable
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeLoadBalancersRequest
- The request to be used for pollingoverrideConfig
- Per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilLoadBalancerAvailable
default CompletableFuture<WaiterResponse<DescribeLoadBalancersResponse>> waitUntilLoadBalancerAvailable(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsElasticLoadBalancingV2AsyncClient.describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
API until the desired conditionLoadBalancerAvailable
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder and instance of the override config builder
- Parameters:
describeLoadBalancersRequest
- The consumer that will configure the request to be used for pollingoverrideConfig
- The consumer that will configure the per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilLoadBalancerExists
default CompletableFuture<WaiterResponse<DescribeLoadBalancersResponse>> waitUntilLoadBalancerExists(DescribeLoadBalancersRequest describeLoadBalancersRequest)
PollsElasticLoadBalancingV2AsyncClient.describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
API until the desired conditionLoadBalancerExists
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeLoadBalancersRequest
- the request to be used for polling- Returns:
- CompletableFuture containing the WaiterResponse. It completes successfully when the resource enters into a desired state or exceptionally when it is determined that the resource will never enter into the desired state.
-
waitUntilLoadBalancerExists
default CompletableFuture<WaiterResponse<DescribeLoadBalancersResponse>> waitUntilLoadBalancerExists(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest)
PollsElasticLoadBalancingV2AsyncClient.describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
API until the desired conditionLoadBalancerExists
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder without the need to create one manually using
DescribeLoadBalancersRequest.builder()
- Parameters:
describeLoadBalancersRequest
- The consumer that will configure the request to be used for polling- Returns:
- CompletableFuture of the WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilLoadBalancerExists
default CompletableFuture<WaiterResponse<DescribeLoadBalancersResponse>> waitUntilLoadBalancerExists(DescribeLoadBalancersRequest describeLoadBalancersRequest, WaiterOverrideConfiguration overrideConfig)
PollsElasticLoadBalancingV2AsyncClient.describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
API until the desired conditionLoadBalancerExists
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeLoadBalancersRequest
- The request to be used for pollingoverrideConfig
- Per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilLoadBalancerExists
default CompletableFuture<WaiterResponse<DescribeLoadBalancersResponse>> waitUntilLoadBalancerExists(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsElasticLoadBalancingV2AsyncClient.describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
API until the desired conditionLoadBalancerExists
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder and instance of the override config builder
- Parameters:
describeLoadBalancersRequest
- The consumer that will configure the request to be used for pollingoverrideConfig
- The consumer that will configure the per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilLoadBalancersDeleted
default CompletableFuture<WaiterResponse<DescribeLoadBalancersResponse>> waitUntilLoadBalancersDeleted(DescribeLoadBalancersRequest describeLoadBalancersRequest)
PollsElasticLoadBalancingV2AsyncClient.describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
API until the desired conditionLoadBalancersDeleted
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeLoadBalancersRequest
- the request to be used for polling- Returns:
- CompletableFuture containing the WaiterResponse. It completes successfully when the resource enters into a desired state or exceptionally when it is determined that the resource will never enter into the desired state.
-
waitUntilLoadBalancersDeleted
default CompletableFuture<WaiterResponse<DescribeLoadBalancersResponse>> waitUntilLoadBalancersDeleted(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest)
PollsElasticLoadBalancingV2AsyncClient.describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
API until the desired conditionLoadBalancersDeleted
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder without the need to create one manually using
DescribeLoadBalancersRequest.builder()
- Parameters:
describeLoadBalancersRequest
- The consumer that will configure the request to be used for polling- Returns:
- CompletableFuture of the WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilLoadBalancersDeleted
default CompletableFuture<WaiterResponse<DescribeLoadBalancersResponse>> waitUntilLoadBalancersDeleted(DescribeLoadBalancersRequest describeLoadBalancersRequest, WaiterOverrideConfiguration overrideConfig)
PollsElasticLoadBalancingV2AsyncClient.describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
API until the desired conditionLoadBalancersDeleted
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeLoadBalancersRequest
- The request to be used for pollingoverrideConfig
- Per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilLoadBalancersDeleted
default CompletableFuture<WaiterResponse<DescribeLoadBalancersResponse>> waitUntilLoadBalancersDeleted(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsElasticLoadBalancingV2AsyncClient.describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
API until the desired conditionLoadBalancersDeleted
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder and instance of the override config builder
- Parameters:
describeLoadBalancersRequest
- The consumer that will configure the request to be used for pollingoverrideConfig
- The consumer that will configure the per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilTargetDeregistered
default CompletableFuture<WaiterResponse<DescribeTargetHealthResponse>> waitUntilTargetDeregistered(DescribeTargetHealthRequest describeTargetHealthRequest)
PollsElasticLoadBalancingV2AsyncClient.describeTargetHealth(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetHealthRequest)
API until the desired conditionTargetDeregistered
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeTargetHealthRequest
- the request to be used for polling- Returns:
- CompletableFuture containing the WaiterResponse. It completes successfully when the resource enters into a desired state or exceptionally when it is determined that the resource will never enter into the desired state.
-
waitUntilTargetDeregistered
default CompletableFuture<WaiterResponse<DescribeTargetHealthResponse>> waitUntilTargetDeregistered(Consumer<DescribeTargetHealthRequest.Builder> describeTargetHealthRequest)
PollsElasticLoadBalancingV2AsyncClient.describeTargetHealth(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetHealthRequest)
API until the desired conditionTargetDeregistered
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder without the need to create one manually using
DescribeTargetHealthRequest.builder()
- Parameters:
describeTargetHealthRequest
- The consumer that will configure the request to be used for polling- Returns:
- CompletableFuture of the WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilTargetDeregistered
default CompletableFuture<WaiterResponse<DescribeTargetHealthResponse>> waitUntilTargetDeregistered(DescribeTargetHealthRequest describeTargetHealthRequest, WaiterOverrideConfiguration overrideConfig)
PollsElasticLoadBalancingV2AsyncClient.describeTargetHealth(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetHealthRequest)
API until the desired conditionTargetDeregistered
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeTargetHealthRequest
- The request to be used for pollingoverrideConfig
- Per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilTargetDeregistered
default CompletableFuture<WaiterResponse<DescribeTargetHealthResponse>> waitUntilTargetDeregistered(Consumer<DescribeTargetHealthRequest.Builder> describeTargetHealthRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsElasticLoadBalancingV2AsyncClient.describeTargetHealth(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetHealthRequest)
API until the desired conditionTargetDeregistered
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder and instance of the override config builder
- Parameters:
describeTargetHealthRequest
- The consumer that will configure the request to be used for pollingoverrideConfig
- The consumer that will configure the per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilTargetInService
default CompletableFuture<WaiterResponse<DescribeTargetHealthResponse>> waitUntilTargetInService(DescribeTargetHealthRequest describeTargetHealthRequest)
PollsElasticLoadBalancingV2AsyncClient.describeTargetHealth(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetHealthRequest)
API until the desired conditionTargetInService
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeTargetHealthRequest
- the request to be used for polling- Returns:
- CompletableFuture containing the WaiterResponse. It completes successfully when the resource enters into a desired state or exceptionally when it is determined that the resource will never enter into the desired state.
-
waitUntilTargetInService
default CompletableFuture<WaiterResponse<DescribeTargetHealthResponse>> waitUntilTargetInService(Consumer<DescribeTargetHealthRequest.Builder> describeTargetHealthRequest)
PollsElasticLoadBalancingV2AsyncClient.describeTargetHealth(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetHealthRequest)
API until the desired conditionTargetInService
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder without the need to create one manually using
DescribeTargetHealthRequest.builder()
- Parameters:
describeTargetHealthRequest
- The consumer that will configure the request to be used for polling- Returns:
- CompletableFuture of the WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilTargetInService
default CompletableFuture<WaiterResponse<DescribeTargetHealthResponse>> waitUntilTargetInService(DescribeTargetHealthRequest describeTargetHealthRequest, WaiterOverrideConfiguration overrideConfig)
PollsElasticLoadBalancingV2AsyncClient.describeTargetHealth(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetHealthRequest)
API until the desired conditionTargetInService
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeTargetHealthRequest
- The request to be used for pollingoverrideConfig
- Per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilTargetInService
default CompletableFuture<WaiterResponse<DescribeTargetHealthResponse>> waitUntilTargetInService(Consumer<DescribeTargetHealthRequest.Builder> describeTargetHealthRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsElasticLoadBalancingV2AsyncClient.describeTargetHealth(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetHealthRequest)
API until the desired conditionTargetInService
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder and instance of the override config builder
- Parameters:
describeTargetHealthRequest
- The consumer that will configure the request to be used for pollingoverrideConfig
- The consumer that will configure the per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
builder
static ElasticLoadBalancingV2AsyncWaiter.Builder builder()
Create a builder that can be used to configure and create aElasticLoadBalancingV2AsyncWaiter
.- Returns:
- a builder
-
create
static ElasticLoadBalancingV2AsyncWaiter create()
Create an instance ofElasticLoadBalancingV2AsyncWaiter
with the default configuration.A default
ElasticLoadBalancingV2AsyncClient
will be created to poll resources. It is recommended to share a single instance of the waiter created via this method. If it is not desirable to share a waiter instance, invokeSdkAutoCloseable.close()
to release the resources once the waiter is not needed.- Returns:
- an instance of
ElasticLoadBalancingV2AsyncWaiter
-
-