Interface JsonRpc10DataPlaneAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface JsonRpc10DataPlaneAsyncClient extends AwsClient
Service client for accessing AWS JSON RPC 1.0 Data Plane asynchronously. This can be created using the static 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 Details

  • Method Details

    • getItem

      default CompletableFuture<GetItemResponse> getItem(GetItemRequest getItemRequest)
      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 invoke Throwable.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.Builder avoiding the need to create one manually via GetItemRequest.builder()

      Parameters:
      getItemRequest - A Consumer that will call methods on GetItemRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via GetMetricDataRequest.builder()

      Parameters:
      getMetricDataRequest - A Consumer that will call methods on GetMetricDataRequest.Builder to 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 invoke Throwable.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(HealthcheckRequest healthcheckRequest)
      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 invoke Throwable.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.Builder avoiding the need to create one manually via HealthcheckRequest.builder()

      Parameters:
      healthcheckRequest - A Consumer that will call methods on HealthcheckRequest.Builder to 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 invoke Throwable.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

      default CompletableFuture<PutItemResponse> putItem(PutItemRequest putItemRequest)
      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 invoke Throwable.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.Builder avoiding the need to create one manually via PutItemRequest.builder()

      Parameters:
      putItemRequest - A Consumer that will call methods on PutItemRequest.Builder to 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 invoke Throwable.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 invoke Throwable.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.Builder avoiding the need to create one manually via PutMetricDataRequest.builder()

      Parameters:
      putMetricDataRequest - A Consumer that will call methods on PutMetricDataRequest.Builder to 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 invoke Throwable.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

      default JsonRpc10DataPlaneServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      Create a JsonRpc10DataPlaneAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      Create a builder that can be used to configure and create a JsonRpc10DataPlaneAsyncClient.