Interface JsonRpc10DataPlaneAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
null-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aJsonRpc10DataPlaneAsyncClient.create()Create aJsonRpc10DataPlaneAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<GetItemResponse> getItem(Consumer<GetItemRequest.Builder> getItemRequest) Invokes the GetItem operation asynchronously.default CompletableFuture<GetItemResponse> getItem(GetItemRequest getItemRequest) Invokes the GetItem operation asynchronously.default CompletableFuture<GetMetricDataResponse> getMetricData(Consumer<GetMetricDataRequest.Builder> getMetricDataRequest) Invokes the GetMetricData operation asynchronously.default CompletableFuture<GetMetricDataResponse> getMetricData(GetMetricDataRequest getMetricDataRequest) Invokes the GetMetricData operation asynchronously.default CompletableFuture<HealthcheckResponse> healthcheck(Consumer<HealthcheckRequest.Builder> healthcheckRequest) Invokes the Healthcheck operation asynchronously.default CompletableFuture<HealthcheckResponse> healthcheck(HealthcheckRequest healthcheckRequest) Invokes the Healthcheck operation asynchronously.default CompletableFuture<PutItemResponse> putItem(Consumer<PutItemRequest.Builder> putItemRequest) Invokes the PutItem operation asynchronously.default CompletableFuture<PutItemResponse> putItem(PutItemRequest putItemRequest) Invokes the PutItem operation asynchronously.default CompletableFuture<PutMetricDataResponse> putMetricData(Consumer<PutMetricDataRequest.Builder> putMetricDataRequest) Invokes the PutMetricData operation asynchronously.default CompletableFuture<PutMetricDataResponse> putMetricData(PutMetricDataRequest putMetricDataRequest) Invokes the PutMetricData operation asynchronously.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
getItem
Invokes the GetItem operation asynchronously.- Parameters:
getItemRequest-- Returns:
- A Java Future containing the result of the GetItem operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- JsonRpc10DataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getItem
Invokes the GetItem operation asynchronously.
This is a convenience which creates an instance of the
GetItemRequest.Builderavoiding the need to create one manually viaGetItemRequest.builder()- Parameters:
getItemRequest- AConsumerthat will call methods onGetItemRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetItem operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- JsonRpc10DataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMetricData
default CompletableFuture<GetMetricDataResponse> getMetricData(GetMetricDataRequest getMetricDataRequest) Invokes the GetMetricData operation asynchronously.- Parameters:
getMetricDataRequest-- Returns:
- A Java Future containing the result of the GetMetricData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- JsonRpc10DataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMetricData
default CompletableFuture<GetMetricDataResponse> getMetricData(Consumer<GetMetricDataRequest.Builder> getMetricDataRequest) Invokes the GetMetricData operation asynchronously.
This is a convenience which creates an instance of the
GetMetricDataRequest.Builderavoiding the need to create one manually viaGetMetricDataRequest.builder()- Parameters:
getMetricDataRequest- AConsumerthat will call methods onGetMetricDataRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetMetricData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- JsonRpc10DataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
healthcheck
Invokes the Healthcheck operation asynchronously.- Parameters:
healthcheckRequest-- Returns:
- A Java Future containing the result of the Healthcheck operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- JsonRpc10DataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
healthcheck
default CompletableFuture<HealthcheckResponse> healthcheck(Consumer<HealthcheckRequest.Builder> healthcheckRequest) Invokes the Healthcheck operation asynchronously.
This is a convenience which creates an instance of the
HealthcheckRequest.Builderavoiding the need to create one manually viaHealthcheckRequest.builder()- Parameters:
healthcheckRequest- AConsumerthat will call methods onHealthcheckRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the Healthcheck operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- JsonRpc10DataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putItem
Invokes the PutItem operation asynchronously.- Parameters:
putItemRequest-- Returns:
- A Java Future containing the result of the PutItem operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- JsonRpc10DataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putItem
Invokes the PutItem operation asynchronously.
This is a convenience which creates an instance of the
PutItemRequest.Builderavoiding the need to create one manually viaPutItemRequest.builder()- Parameters:
putItemRequest- AConsumerthat will call methods onPutItemRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutItem operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- JsonRpc10DataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putMetricData
default CompletableFuture<PutMetricDataResponse> putMetricData(PutMetricDataRequest putMetricDataRequest) Invokes the PutMetricData operation asynchronously.- Parameters:
putMetricDataRequest-- Returns:
- A Java Future containing the result of the PutMetricData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- JsonRpc10DataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putMetricData
default CompletableFuture<PutMetricDataResponse> putMetricData(Consumer<PutMetricDataRequest.Builder> putMetricDataRequest) Invokes the PutMetricData operation asynchronously.
This is a convenience which creates an instance of the
PutMetricDataRequest.Builderavoiding the need to create one manually viaPutMetricDataRequest.builder()- Parameters:
putMetricDataRequest- AConsumerthat will call methods onPutMetricDataRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutMetricData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- JsonRpc10DataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aJsonRpc10DataPlaneAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aJsonRpc10DataPlaneAsyncClient.
-