@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_METRIC
ENDPOINT_PREFIX
builder, cancelJob, cancelQuantumTask, createJob, createQuantumTask, getCachedResponseMetadata, getDevice, getJob, getQuantumTask, listTagsForResource, searchDevices, searchJobs, searchQuantumTasks, tagResource, untagResource
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
cancelJob, cancelQuantumTask, createJob, createQuantumTask, getCachedResponseMetadata, getDevice, getJob, getQuantumTask, listTagsForResource, searchDevices, searchJobs, searchQuantumTasks, tagResource, untagResource
public static AWSBraketAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CancelJobResult> cancelJobAsync(CancelJobRequest request)
AWSBraketAsync
Cancels an Amazon Braket job.
cancelJobAsync
in interface AWSBraketAsync
public Future<CancelJobResult> cancelJobAsync(CancelJobRequest request, AsyncHandler<CancelJobRequest,CancelJobResult> asyncHandler)
AWSBraketAsync
Cancels an Amazon Braket job.
cancelJobAsync
in interface AWSBraketAsync
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<CancelQuantumTaskResult> cancelQuantumTaskAsync(CancelQuantumTaskRequest request)
AWSBraketAsync
Cancels the specified task.
cancelQuantumTaskAsync
in interface AWSBraketAsync
public Future<CancelQuantumTaskResult> cancelQuantumTaskAsync(CancelQuantumTaskRequest request, AsyncHandler<CancelQuantumTaskRequest,CancelQuantumTaskResult> asyncHandler)
AWSBraketAsync
Cancels the specified task.
cancelQuantumTaskAsync
in interface AWSBraketAsync
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<CreateJobResult> createJobAsync(CreateJobRequest request)
AWSBraketAsync
Creates an Amazon Braket job.
createJobAsync
in interface AWSBraketAsync
public Future<CreateJobResult> createJobAsync(CreateJobRequest request, AsyncHandler<CreateJobRequest,CreateJobResult> asyncHandler)
AWSBraketAsync
Creates an Amazon Braket job.
createJobAsync
in interface AWSBraketAsync
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<CreateQuantumTaskResult> createQuantumTaskAsync(CreateQuantumTaskRequest request)
AWSBraketAsync
Creates a quantum task.
createQuantumTaskAsync
in interface AWSBraketAsync
public Future<CreateQuantumTaskResult> createQuantumTaskAsync(CreateQuantumTaskRequest request, AsyncHandler<CreateQuantumTaskRequest,CreateQuantumTaskResult> asyncHandler)
AWSBraketAsync
Creates a quantum task.
createQuantumTaskAsync
in interface AWSBraketAsync
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<GetDeviceResult> getDeviceAsync(GetDeviceRequest request)
AWSBraketAsync
Retrieves 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 AWSBraketAsync
public Future<GetDeviceResult> getDeviceAsync(GetDeviceRequest request, AsyncHandler<GetDeviceRequest,GetDeviceResult> asyncHandler)
AWSBraketAsync
Retrieves 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 AWSBraketAsync
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<GetJobResult> getJobAsync(GetJobRequest request)
AWSBraketAsync
Retrieves the specified Amazon Braket job.
getJobAsync
in interface AWSBraketAsync
public Future<GetJobResult> getJobAsync(GetJobRequest request, AsyncHandler<GetJobRequest,GetJobResult> asyncHandler)
AWSBraketAsync
Retrieves the specified Amazon Braket job.
getJobAsync
in interface AWSBraketAsync
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<GetQuantumTaskResult> getQuantumTaskAsync(GetQuantumTaskRequest request)
AWSBraketAsync
Retrieves the specified quantum task.
getQuantumTaskAsync
in interface AWSBraketAsync
public Future<GetQuantumTaskResult> getQuantumTaskAsync(GetQuantumTaskRequest request, AsyncHandler<GetQuantumTaskRequest,GetQuantumTaskResult> asyncHandler)
AWSBraketAsync
Retrieves the specified quantum task.
getQuantumTaskAsync
in interface AWSBraketAsync
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<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSBraketAsync
Shows the tags associated with this resource.
listTagsForResourceAsync
in interface AWSBraketAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSBraketAsync
Shows the tags associated with this resource.
listTagsForResourceAsync
in interface AWSBraketAsync
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<SearchDevicesResult> searchDevicesAsync(SearchDevicesRequest request)
AWSBraketAsync
Searches for devices using the specified filters.
searchDevicesAsync
in interface AWSBraketAsync
public Future<SearchDevicesResult> searchDevicesAsync(SearchDevicesRequest request, AsyncHandler<SearchDevicesRequest,SearchDevicesResult> asyncHandler)
AWSBraketAsync
Searches for devices using the specified filters.
searchDevicesAsync
in interface AWSBraketAsync
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<SearchJobsResult> searchJobsAsync(SearchJobsRequest request)
AWSBraketAsync
Searches for Amazon Braket jobs that match the specified filter values.
searchJobsAsync
in interface AWSBraketAsync
public Future<SearchJobsResult> searchJobsAsync(SearchJobsRequest request, AsyncHandler<SearchJobsRequest,SearchJobsResult> asyncHandler)
AWSBraketAsync
Searches for Amazon Braket jobs that match the specified filter values.
searchJobsAsync
in interface AWSBraketAsync
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<SearchQuantumTasksResult> searchQuantumTasksAsync(SearchQuantumTasksRequest request)
AWSBraketAsync
Searches for tasks that match the specified filter values.
searchQuantumTasksAsync
in interface AWSBraketAsync
public Future<SearchQuantumTasksResult> searchQuantumTasksAsync(SearchQuantumTasksRequest request, AsyncHandler<SearchQuantumTasksRequest,SearchQuantumTasksResult> asyncHandler)
AWSBraketAsync
Searches for tasks that match the specified filter values.
searchQuantumTasksAsync
in interface AWSBraketAsync
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<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSBraketAsync
Add a tag to the specified resource.
tagResourceAsync
in interface AWSBraketAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSBraketAsync
Add a tag to the specified resource.
tagResourceAsync
in interface AWSBraketAsync
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<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSBraketAsync
Remove tags from a resource.
untagResourceAsync
in interface AWSBraketAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSBraketAsync
Remove tags from a resource.
untagResourceAsync
in interface AWSBraketAsync
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 AWSBraket
shutdown
in class AWSBraketClient