Interface EmrWaiter
- All Superinterfaces:
AutoCloseable
,SdkAutoCloseable
builder()
method-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EmrWaiter.Builder
builder()
Create a builder that can be used to configure and create aEmrWaiter
.static EmrWaiter
create()
Create an instance ofEmrWaiter
with the default configuration.default WaiterResponse
<DescribeClusterResponse> waitUntilClusterRunning
(Consumer<DescribeClusterRequest.Builder> describeClusterRequest) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterRunning
is met, or until it is determined that the resource will never enter into the desired state.default WaiterResponse
<DescribeClusterResponse> waitUntilClusterRunning
(Consumer<DescribeClusterRequest.Builder> describeClusterRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterRunning
is met, or until it is determined that the resource will never enter into the desired state.default WaiterResponse
<DescribeClusterResponse> waitUntilClusterRunning
(DescribeClusterRequest describeClusterRequest) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterRunning
is met, or until it is determined that the resource will never enter into the desired statedefault WaiterResponse
<DescribeClusterResponse> waitUntilClusterRunning
(DescribeClusterRequest describeClusterRequest, WaiterOverrideConfiguration overrideConfig) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterRunning
is met, or until it is determined that the resource will never enter into the desired statedefault WaiterResponse
<DescribeClusterResponse> waitUntilClusterTerminated
(Consumer<DescribeClusterRequest.Builder> describeClusterRequest) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterTerminated
is met, or until it is determined that the resource will never enter into the desired state.default WaiterResponse
<DescribeClusterResponse> waitUntilClusterTerminated
(Consumer<DescribeClusterRequest.Builder> describeClusterRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterTerminated
is met, or until it is determined that the resource will never enter into the desired state.default WaiterResponse
<DescribeClusterResponse> waitUntilClusterTerminated
(DescribeClusterRequest describeClusterRequest) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterTerminated
is met, or until it is determined that the resource will never enter into the desired statedefault WaiterResponse
<DescribeClusterResponse> waitUntilClusterTerminated
(DescribeClusterRequest describeClusterRequest, WaiterOverrideConfiguration overrideConfig) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterTerminated
is met, or until it is determined that the resource will never enter into the desired statedefault WaiterResponse
<DescribeStepResponse> waitUntilStepComplete
(Consumer<DescribeStepRequest.Builder> describeStepRequest) PollsEmrClient.describeStep(software.amazon.awssdk.services.emr.model.DescribeStepRequest)
API until the desired conditionStepComplete
is met, or until it is determined that the resource will never enter into the desired state.default WaiterResponse
<DescribeStepResponse> waitUntilStepComplete
(Consumer<DescribeStepRequest.Builder> describeStepRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsEmrClient.describeStep(software.amazon.awssdk.services.emr.model.DescribeStepRequest)
API until the desired conditionStepComplete
is met, or until it is determined that the resource will never enter into the desired state.default WaiterResponse
<DescribeStepResponse> waitUntilStepComplete
(DescribeStepRequest describeStepRequest) PollsEmrClient.describeStep(software.amazon.awssdk.services.emr.model.DescribeStepRequest)
API until the desired conditionStepComplete
is met, or until it is determined that the resource will never enter into the desired statedefault WaiterResponse
<DescribeStepResponse> waitUntilStepComplete
(DescribeStepRequest describeStepRequest, WaiterOverrideConfiguration overrideConfig) PollsEmrClient.describeStep(software.amazon.awssdk.services.emr.model.DescribeStepRequest)
API until the desired conditionStepComplete
is met, or until it is determined that the resource will never enter into the desired stateMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Method Details
-
waitUntilClusterRunning
default WaiterResponse<DescribeClusterResponse> waitUntilClusterRunning(DescribeClusterRequest describeClusterRequest) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterRunning
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeClusterRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilClusterRunning
default WaiterResponse<DescribeClusterResponse> waitUntilClusterRunning(Consumer<DescribeClusterRequest.Builder> describeClusterRequest) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterRunning
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
DescribeClusterRequest.builder()
- Parameters:
describeClusterRequest
- 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
-
waitUntilClusterRunning
default WaiterResponse<DescribeClusterResponse> waitUntilClusterRunning(DescribeClusterRequest describeClusterRequest, WaiterOverrideConfiguration overrideConfig) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterRunning
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeClusterRequest
- 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
-
waitUntilClusterRunning
default WaiterResponse<DescribeClusterResponse> waitUntilClusterRunning(Consumer<DescribeClusterRequest.Builder> describeClusterRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterRunning
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:
describeClusterRequest
- 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
-
waitUntilClusterTerminated
default WaiterResponse<DescribeClusterResponse> waitUntilClusterTerminated(DescribeClusterRequest describeClusterRequest) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterTerminated
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeClusterRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilClusterTerminated
default WaiterResponse<DescribeClusterResponse> waitUntilClusterTerminated(Consumer<DescribeClusterRequest.Builder> describeClusterRequest) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterTerminated
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
DescribeClusterRequest.builder()
- Parameters:
describeClusterRequest
- 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
-
waitUntilClusterTerminated
default WaiterResponse<DescribeClusterResponse> waitUntilClusterTerminated(DescribeClusterRequest describeClusterRequest, WaiterOverrideConfiguration overrideConfig) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterTerminated
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeClusterRequest
- 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
-
waitUntilClusterTerminated
default WaiterResponse<DescribeClusterResponse> waitUntilClusterTerminated(Consumer<DescribeClusterRequest.Builder> describeClusterRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsEmrClient.describeCluster(software.amazon.awssdk.services.emr.model.DescribeClusterRequest)
API until the desired conditionClusterTerminated
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:
describeClusterRequest
- 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
-
waitUntilStepComplete
default WaiterResponse<DescribeStepResponse> waitUntilStepComplete(DescribeStepRequest describeStepRequest) PollsEmrClient.describeStep(software.amazon.awssdk.services.emr.model.DescribeStepRequest)
API until the desired conditionStepComplete
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeStepRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilStepComplete
default WaiterResponse<DescribeStepResponse> waitUntilStepComplete(Consumer<DescribeStepRequest.Builder> describeStepRequest) PollsEmrClient.describeStep(software.amazon.awssdk.services.emr.model.DescribeStepRequest)
API until the desired conditionStepComplete
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
DescribeStepRequest.builder()
- Parameters:
describeStepRequest
- 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
-
waitUntilStepComplete
default WaiterResponse<DescribeStepResponse> waitUntilStepComplete(DescribeStepRequest describeStepRequest, WaiterOverrideConfiguration overrideConfig) PollsEmrClient.describeStep(software.amazon.awssdk.services.emr.model.DescribeStepRequest)
API until the desired conditionStepComplete
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeStepRequest
- 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
-
waitUntilStepComplete
default WaiterResponse<DescribeStepResponse> waitUntilStepComplete(Consumer<DescribeStepRequest.Builder> describeStepRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsEmrClient.describeStep(software.amazon.awssdk.services.emr.model.DescribeStepRequest)
API until the desired conditionStepComplete
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:
describeStepRequest
- 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
Create a builder that can be used to configure and create aEmrWaiter
.- Returns:
- a builder
-
create
Create an instance ofEmrWaiter
with the default configuration.A default
EmrClient
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
EmrWaiter
-