@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSBraketAsyncClient extends AWSBraketClient implements AWSBraketAsync
AsyncHandler can be used to receive notification when
an asynchronous operation completes.
The Amazon Braket API Reference provides information about the operations and structures supported in Amazon Braket.
Additional Resources:
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXbuilder, cancelJob, cancelQuantumTask, createJob, createQuantumTask, getCachedResponseMetadata, getDevice, getJob, getQuantumTask, listTagsForResource, searchDevices, searchJobs, searchQuantumTasks, tagResource, untagResourceaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelJob, cancelQuantumTask, createJob, createQuantumTask, getCachedResponseMetadata, getDevice, getJob, getQuantumTask, listTagsForResource, searchDevices, searchJobs, searchQuantumTasks, tagResource, untagResourcepublic static AWSBraketAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CancelJobResult> cancelJobAsync(CancelJobRequest request)
AWSBraketAsyncCancels an Amazon Braket job.
cancelJobAsync in interface AWSBraketAsyncpublic Future<CancelJobResult> cancelJobAsync(CancelJobRequest request, AsyncHandler<CancelJobRequest,CancelJobResult> asyncHandler)
AWSBraketAsyncCancels an Amazon Braket job.
cancelJobAsync in interface AWSBraketAsyncasyncHandler - 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<CancelQuantumTaskResult> cancelQuantumTaskAsync(CancelQuantumTaskRequest request)
AWSBraketAsyncCancels the specified task.
cancelQuantumTaskAsync in interface AWSBraketAsyncpublic Future<CancelQuantumTaskResult> cancelQuantumTaskAsync(CancelQuantumTaskRequest request, AsyncHandler<CancelQuantumTaskRequest,CancelQuantumTaskResult> asyncHandler)
AWSBraketAsyncCancels the specified task.
cancelQuantumTaskAsync in interface AWSBraketAsyncasyncHandler - 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<CreateJobResult> createJobAsync(CreateJobRequest request)
AWSBraketAsyncCreates an Amazon Braket job.
createJobAsync in interface AWSBraketAsyncpublic Future<CreateJobResult> createJobAsync(CreateJobRequest request, AsyncHandler<CreateJobRequest,CreateJobResult> asyncHandler)
AWSBraketAsyncCreates an Amazon Braket job.
createJobAsync in interface AWSBraketAsyncasyncHandler - 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<CreateQuantumTaskResult> createQuantumTaskAsync(CreateQuantumTaskRequest request)
AWSBraketAsyncCreates a quantum task.
createQuantumTaskAsync in interface AWSBraketAsyncpublic Future<CreateQuantumTaskResult> createQuantumTaskAsync(CreateQuantumTaskRequest request, AsyncHandler<CreateQuantumTaskRequest,CreateQuantumTaskResult> asyncHandler)
AWSBraketAsyncCreates a quantum task.
createQuantumTaskAsync in interface AWSBraketAsyncasyncHandler - 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<GetDeviceResult> getDeviceAsync(GetDeviceRequest request)
AWSBraketAsyncRetrieves the devices available in Amazon Braket.
For backwards compatibility with older versions of BraketSchemas, OpenQASM information is omitted from GetDevice API calls. To get this information the user-agent needs to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK automatically reports this for you. If you do not see OpenQASM results in the GetDevice response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment variable to configure user-agent. See the code examples provided below for how to do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs.
getDeviceAsync in interface AWSBraketAsyncpublic Future<GetDeviceResult> getDeviceAsync(GetDeviceRequest request, AsyncHandler<GetDeviceRequest,GetDeviceResult> asyncHandler)
AWSBraketAsyncRetrieves the devices available in Amazon Braket.
For backwards compatibility with older versions of BraketSchemas, OpenQASM information is omitted from GetDevice API calls. To get this information the user-agent needs to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK automatically reports this for you. If you do not see OpenQASM results in the GetDevice response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment variable to configure user-agent. See the code examples provided below for how to do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs.
getDeviceAsync in interface AWSBraketAsyncasyncHandler - 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<GetJobResult> getJobAsync(GetJobRequest request)
AWSBraketAsyncRetrieves the specified Amazon Braket job.
getJobAsync in interface AWSBraketAsyncpublic Future<GetJobResult> getJobAsync(GetJobRequest request, AsyncHandler<GetJobRequest,GetJobResult> asyncHandler)
AWSBraketAsyncRetrieves the specified Amazon Braket job.
getJobAsync in interface AWSBraketAsyncasyncHandler - 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<GetQuantumTaskResult> getQuantumTaskAsync(GetQuantumTaskRequest request)
AWSBraketAsyncRetrieves the specified quantum task.
getQuantumTaskAsync in interface AWSBraketAsyncpublic Future<GetQuantumTaskResult> getQuantumTaskAsync(GetQuantumTaskRequest request, AsyncHandler<GetQuantumTaskRequest,GetQuantumTaskResult> asyncHandler)
AWSBraketAsyncRetrieves the specified quantum task.
getQuantumTaskAsync in interface AWSBraketAsyncasyncHandler - 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<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSBraketAsyncShows the tags associated with this resource.
listTagsForResourceAsync in interface AWSBraketAsyncpublic Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSBraketAsyncShows the tags associated with this resource.
listTagsForResourceAsync in interface AWSBraketAsyncasyncHandler - 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<SearchDevicesResult> searchDevicesAsync(SearchDevicesRequest request)
AWSBraketAsyncSearches for devices using the specified filters.
searchDevicesAsync in interface AWSBraketAsyncpublic Future<SearchDevicesResult> searchDevicesAsync(SearchDevicesRequest request, AsyncHandler<SearchDevicesRequest,SearchDevicesResult> asyncHandler)
AWSBraketAsyncSearches for devices using the specified filters.
searchDevicesAsync in interface AWSBraketAsyncasyncHandler - 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<SearchJobsResult> searchJobsAsync(SearchJobsRequest request)
AWSBraketAsyncSearches for Amazon Braket jobs that match the specified filter values.
searchJobsAsync in interface AWSBraketAsyncpublic Future<SearchJobsResult> searchJobsAsync(SearchJobsRequest request, AsyncHandler<SearchJobsRequest,SearchJobsResult> asyncHandler)
AWSBraketAsyncSearches for Amazon Braket jobs that match the specified filter values.
searchJobsAsync in interface AWSBraketAsyncasyncHandler - 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<SearchQuantumTasksResult> searchQuantumTasksAsync(SearchQuantumTasksRequest request)
AWSBraketAsyncSearches for tasks that match the specified filter values.
searchQuantumTasksAsync in interface AWSBraketAsyncpublic Future<SearchQuantumTasksResult> searchQuantumTasksAsync(SearchQuantumTasksRequest request, AsyncHandler<SearchQuantumTasksRequest,SearchQuantumTasksResult> asyncHandler)
AWSBraketAsyncSearches for tasks that match the specified filter values.
searchQuantumTasksAsync in interface AWSBraketAsyncasyncHandler - 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<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSBraketAsyncAdd a tag to the specified resource.
tagResourceAsync in interface AWSBraketAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSBraketAsyncAdd a tag to the specified resource.
tagResourceAsync in interface AWSBraketAsyncasyncHandler - 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<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSBraketAsyncRemove tags from a resource.
untagResourceAsync in interface AWSBraketAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSBraketAsyncRemove tags from a resource.
untagResourceAsync in interface AWSBraketAsyncasyncHandler - 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 AWSBraketshutdown in class AWSBraketClient