@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonCloudFrontKeyValueStoreAsyncClient extends AmazonCloudFrontKeyValueStoreClient implements AmazonCloudFrontKeyValueStoreAsync
AsyncHandler
can be used to
receive notification when an asynchronous operation completes.
Amazon CloudFront KeyValueStore Service to View and Update Data in a KVS Resource
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonCloudFrontKeyValueStoreAsyncClientBuilder |
asyncBuilder() |
Future<DeleteKeyResult> |
deleteKeyAsync(DeleteKeyRequest request)
Deletes the key value pair specified by the key.
|
Future<DeleteKeyResult> |
deleteKeyAsync(DeleteKeyRequest request,
AsyncHandler<DeleteKeyRequest,DeleteKeyResult> asyncHandler)
Deletes the key value pair specified by the key.
|
Future<DescribeKeyValueStoreResult> |
describeKeyValueStoreAsync(DescribeKeyValueStoreRequest request)
Returns metadata information about Key Value Store.
|
Future<DescribeKeyValueStoreResult> |
describeKeyValueStoreAsync(DescribeKeyValueStoreRequest request,
AsyncHandler<DescribeKeyValueStoreRequest,DescribeKeyValueStoreResult> asyncHandler)
Returns metadata information about Key Value Store.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetKeyResult> |
getKeyAsync(GetKeyRequest request)
Returns a key value pair.
|
Future<GetKeyResult> |
getKeyAsync(GetKeyRequest request,
AsyncHandler<GetKeyRequest,GetKeyResult> asyncHandler)
Returns a key value pair.
|
Future<ListKeysResult> |
listKeysAsync(ListKeysRequest request)
Returns a list of key value pairs.
|
Future<ListKeysResult> |
listKeysAsync(ListKeysRequest request,
AsyncHandler<ListKeysRequest,ListKeysResult> asyncHandler)
Returns a list of key value pairs.
|
Future<PutKeyResult> |
putKeyAsync(PutKeyRequest request)
Creates a new key value pair or replaces the value of an existing key.
|
Future<PutKeyResult> |
putKeyAsync(PutKeyRequest request,
AsyncHandler<PutKeyRequest,PutKeyResult> asyncHandler)
Creates a new key value pair or replaces the value of an existing key.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<UpdateKeysResult> |
updateKeysAsync(UpdateKeysRequest request)
Puts or Deletes multiple key value pairs in a single, all-or-nothing operation.
|
Future<UpdateKeysResult> |
updateKeysAsync(UpdateKeysRequest request,
AsyncHandler<UpdateKeysRequest,UpdateKeysResult> asyncHandler)
Puts or Deletes multiple key value pairs in a single, all-or-nothing operation.
|
builder, deleteKey, describeKeyValueStore, getCachedResponseMetadata, getKey, listKeys, putKey, updateKeys
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteKey, describeKeyValueStore, getCachedResponseMetadata, getKey, listKeys, putKey, updateKeys
public static AmazonCloudFrontKeyValueStoreAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<DeleteKeyResult> deleteKeyAsync(DeleteKeyRequest request)
AmazonCloudFrontKeyValueStoreAsync
Deletes the key value pair specified by the key.
deleteKeyAsync
in interface AmazonCloudFrontKeyValueStoreAsync
public Future<DeleteKeyResult> deleteKeyAsync(DeleteKeyRequest request, AsyncHandler<DeleteKeyRequest,DeleteKeyResult> asyncHandler)
AmazonCloudFrontKeyValueStoreAsync
Deletes the key value pair specified by the key.
deleteKeyAsync
in interface AmazonCloudFrontKeyValueStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeKeyValueStoreResult> describeKeyValueStoreAsync(DescribeKeyValueStoreRequest request)
AmazonCloudFrontKeyValueStoreAsync
Returns metadata information about Key Value Store.
describeKeyValueStoreAsync
in interface AmazonCloudFrontKeyValueStoreAsync
public Future<DescribeKeyValueStoreResult> describeKeyValueStoreAsync(DescribeKeyValueStoreRequest request, AsyncHandler<DescribeKeyValueStoreRequest,DescribeKeyValueStoreResult> asyncHandler)
AmazonCloudFrontKeyValueStoreAsync
Returns metadata information about Key Value Store.
describeKeyValueStoreAsync
in interface AmazonCloudFrontKeyValueStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetKeyResult> getKeyAsync(GetKeyRequest request)
AmazonCloudFrontKeyValueStoreAsync
Returns a key value pair.
getKeyAsync
in interface AmazonCloudFrontKeyValueStoreAsync
public Future<GetKeyResult> getKeyAsync(GetKeyRequest request, AsyncHandler<GetKeyRequest,GetKeyResult> asyncHandler)
AmazonCloudFrontKeyValueStoreAsync
Returns a key value pair.
getKeyAsync
in interface AmazonCloudFrontKeyValueStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListKeysResult> listKeysAsync(ListKeysRequest request)
AmazonCloudFrontKeyValueStoreAsync
Returns a list of key value pairs.
listKeysAsync
in interface AmazonCloudFrontKeyValueStoreAsync
public Future<ListKeysResult> listKeysAsync(ListKeysRequest request, AsyncHandler<ListKeysRequest,ListKeysResult> asyncHandler)
AmazonCloudFrontKeyValueStoreAsync
Returns a list of key value pairs.
listKeysAsync
in interface AmazonCloudFrontKeyValueStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutKeyResult> putKeyAsync(PutKeyRequest request)
AmazonCloudFrontKeyValueStoreAsync
Creates a new key value pair or replaces the value of an existing key.
putKeyAsync
in interface AmazonCloudFrontKeyValueStoreAsync
request
- A key value pair.public Future<PutKeyResult> putKeyAsync(PutKeyRequest request, AsyncHandler<PutKeyRequest,PutKeyResult> asyncHandler)
AmazonCloudFrontKeyValueStoreAsync
Creates a new key value pair or replaces the value of an existing key.
putKeyAsync
in interface AmazonCloudFrontKeyValueStoreAsync
request
- A key value pair.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateKeysResult> updateKeysAsync(UpdateKeysRequest request)
AmazonCloudFrontKeyValueStoreAsync
Puts or Deletes multiple key value pairs in a single, all-or-nothing operation.
updateKeysAsync
in interface AmazonCloudFrontKeyValueStoreAsync
public Future<UpdateKeysResult> updateKeysAsync(UpdateKeysRequest request, AsyncHandler<UpdateKeysRequest,UpdateKeysResult> asyncHandler)
AmazonCloudFrontKeyValueStoreAsync
Puts or Deletes multiple key value pairs in a single, all-or-nothing operation.
updateKeysAsync
in interface AmazonCloudFrontKeyValueStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AmazonCloudFrontKeyValueStore
shutdown
in class AmazonCloudFrontKeyValueStoreClient