Interface ElastiCacheWaiter
-
- All Superinterfaces:
AutoCloseable
,SdkAutoCloseable
@Generated("software.amazon.awssdk:codegen") @ThreadSafe @Immutable public interface ElastiCacheWaiter 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
ElastiCacheWaiter.Builder
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
-
-
-
Method Detail
-
waitUntilCacheClusterAvailable
default WaiterResponse<DescribeCacheClustersResponse> waitUntilCacheClusterAvailable(DescribeCacheClustersRequest describeCacheClustersRequest)
PollsElastiCacheClient.describeCacheClusters(software.amazon.awssdk.services.elasticache.model.DescribeCacheClustersRequest)
API until the desired conditionCacheClusterAvailable
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeCacheClustersRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilCacheClusterAvailable
default WaiterResponse<DescribeCacheClustersResponse> waitUntilCacheClusterAvailable(Consumer<DescribeCacheClustersRequest.Builder> describeCacheClustersRequest)
PollsElastiCacheClient.describeCacheClusters(software.amazon.awssdk.services.elasticache.model.DescribeCacheClustersRequest)
API until the desired conditionCacheClusterAvailable
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
DescribeCacheClustersRequest.builder()
- Parameters:
describeCacheClustersRequest
- The consumer that will configure the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilCacheClusterAvailable
default WaiterResponse<DescribeCacheClustersResponse> waitUntilCacheClusterAvailable(DescribeCacheClustersRequest describeCacheClustersRequest, WaiterOverrideConfiguration overrideConfig)
PollsElastiCacheClient.describeCacheClusters(software.amazon.awssdk.services.elasticache.model.DescribeCacheClustersRequest)
API until the desired conditionCacheClusterAvailable
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeCacheClustersRequest
- 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
-
waitUntilCacheClusterAvailable
default WaiterResponse<DescribeCacheClustersResponse> waitUntilCacheClusterAvailable(Consumer<DescribeCacheClustersRequest.Builder> describeCacheClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsElastiCacheClient.describeCacheClusters(software.amazon.awssdk.services.elasticache.model.DescribeCacheClustersRequest)
API until the desired conditionCacheClusterAvailable
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:
describeCacheClustersRequest
- 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
-
waitUntilCacheClusterDeleted
default WaiterResponse<DescribeCacheClustersResponse> waitUntilCacheClusterDeleted(DescribeCacheClustersRequest describeCacheClustersRequest)
PollsElastiCacheClient.describeCacheClusters(software.amazon.awssdk.services.elasticache.model.DescribeCacheClustersRequest)
API until the desired conditionCacheClusterDeleted
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeCacheClustersRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilCacheClusterDeleted
default WaiterResponse<DescribeCacheClustersResponse> waitUntilCacheClusterDeleted(Consumer<DescribeCacheClustersRequest.Builder> describeCacheClustersRequest)
PollsElastiCacheClient.describeCacheClusters(software.amazon.awssdk.services.elasticache.model.DescribeCacheClustersRequest)
API until the desired conditionCacheClusterDeleted
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
DescribeCacheClustersRequest.builder()
- Parameters:
describeCacheClustersRequest
- The consumer that will configure the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilCacheClusterDeleted
default WaiterResponse<DescribeCacheClustersResponse> waitUntilCacheClusterDeleted(DescribeCacheClustersRequest describeCacheClustersRequest, WaiterOverrideConfiguration overrideConfig)
PollsElastiCacheClient.describeCacheClusters(software.amazon.awssdk.services.elasticache.model.DescribeCacheClustersRequest)
API until the desired conditionCacheClusterDeleted
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeCacheClustersRequest
- 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
-
waitUntilCacheClusterDeleted
default WaiterResponse<DescribeCacheClustersResponse> waitUntilCacheClusterDeleted(Consumer<DescribeCacheClustersRequest.Builder> describeCacheClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsElastiCacheClient.describeCacheClusters(software.amazon.awssdk.services.elasticache.model.DescribeCacheClustersRequest)
API until the desired conditionCacheClusterDeleted
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:
describeCacheClustersRequest
- 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
-
waitUntilReplicationGroupAvailable
default WaiterResponse<DescribeReplicationGroupsResponse> waitUntilReplicationGroupAvailable(DescribeReplicationGroupsRequest describeReplicationGroupsRequest)
PollsElastiCacheClient.describeReplicationGroups(software.amazon.awssdk.services.elasticache.model.DescribeReplicationGroupsRequest)
API until the desired conditionReplicationGroupAvailable
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeReplicationGroupsRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilReplicationGroupAvailable
default WaiterResponse<DescribeReplicationGroupsResponse> waitUntilReplicationGroupAvailable(Consumer<DescribeReplicationGroupsRequest.Builder> describeReplicationGroupsRequest)
PollsElastiCacheClient.describeReplicationGroups(software.amazon.awssdk.services.elasticache.model.DescribeReplicationGroupsRequest)
API until the desired conditionReplicationGroupAvailable
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
DescribeReplicationGroupsRequest.builder()
- Parameters:
describeReplicationGroupsRequest
- The consumer that will configure the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilReplicationGroupAvailable
default WaiterResponse<DescribeReplicationGroupsResponse> waitUntilReplicationGroupAvailable(DescribeReplicationGroupsRequest describeReplicationGroupsRequest, WaiterOverrideConfiguration overrideConfig)
PollsElastiCacheClient.describeReplicationGroups(software.amazon.awssdk.services.elasticache.model.DescribeReplicationGroupsRequest)
API until the desired conditionReplicationGroupAvailable
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeReplicationGroupsRequest
- 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
-
waitUntilReplicationGroupAvailable
default WaiterResponse<DescribeReplicationGroupsResponse> waitUntilReplicationGroupAvailable(Consumer<DescribeReplicationGroupsRequest.Builder> describeReplicationGroupsRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsElastiCacheClient.describeReplicationGroups(software.amazon.awssdk.services.elasticache.model.DescribeReplicationGroupsRequest)
API until the desired conditionReplicationGroupAvailable
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:
describeReplicationGroupsRequest
- 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
-
waitUntilReplicationGroupDeleted
default WaiterResponse<DescribeReplicationGroupsResponse> waitUntilReplicationGroupDeleted(DescribeReplicationGroupsRequest describeReplicationGroupsRequest)
PollsElastiCacheClient.describeReplicationGroups(software.amazon.awssdk.services.elasticache.model.DescribeReplicationGroupsRequest)
API until the desired conditionReplicationGroupDeleted
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeReplicationGroupsRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilReplicationGroupDeleted
default WaiterResponse<DescribeReplicationGroupsResponse> waitUntilReplicationGroupDeleted(Consumer<DescribeReplicationGroupsRequest.Builder> describeReplicationGroupsRequest)
PollsElastiCacheClient.describeReplicationGroups(software.amazon.awssdk.services.elasticache.model.DescribeReplicationGroupsRequest)
API until the desired conditionReplicationGroupDeleted
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
DescribeReplicationGroupsRequest.builder()
- Parameters:
describeReplicationGroupsRequest
- The consumer that will configure the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilReplicationGroupDeleted
default WaiterResponse<DescribeReplicationGroupsResponse> waitUntilReplicationGroupDeleted(DescribeReplicationGroupsRequest describeReplicationGroupsRequest, WaiterOverrideConfiguration overrideConfig)
PollsElastiCacheClient.describeReplicationGroups(software.amazon.awssdk.services.elasticache.model.DescribeReplicationGroupsRequest)
API until the desired conditionReplicationGroupDeleted
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeReplicationGroupsRequest
- 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
-
waitUntilReplicationGroupDeleted
default WaiterResponse<DescribeReplicationGroupsResponse> waitUntilReplicationGroupDeleted(Consumer<DescribeReplicationGroupsRequest.Builder> describeReplicationGroupsRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsElastiCacheClient.describeReplicationGroups(software.amazon.awssdk.services.elasticache.model.DescribeReplicationGroupsRequest)
API until the desired conditionReplicationGroupDeleted
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:
describeReplicationGroupsRequest
- 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 ElastiCacheWaiter.Builder builder()
Create a builder that can be used to configure and create aElastiCacheWaiter
.- Returns:
- a builder
-
create
static ElastiCacheWaiter create()
Create an instance ofElastiCacheWaiter
with the default configuration.A default
ElastiCacheClient
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
ElastiCacheWaiter
-
-