@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonPrometheusAsyncClient extends AmazonPrometheusClient implements AmazonPrometheusAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Amazon Managed Service for Prometheus
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
builder, createWorkspace, deleteWorkspace, describeWorkspace, getCachedResponseMetadata, listWorkspaces, updateWorkspaceAlias
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
createWorkspace, deleteWorkspace, describeWorkspace, getCachedResponseMetadata, listWorkspaces, updateWorkspaceAlias
public static AmazonPrometheusAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateWorkspaceResult> createWorkspaceAsync(CreateWorkspaceRequest request)
AmazonPrometheusAsync
Creates a new AMP workspace.
createWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateWorkspace operation.public Future<CreateWorkspaceResult> createWorkspaceAsync(CreateWorkspaceRequest request, AsyncHandler<CreateWorkspaceRequest,CreateWorkspaceResult> asyncHandler)
AmazonPrometheusAsync
Creates a new AMP workspace.
createWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a CreateWorkspace operation.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<DeleteWorkspaceResult> deleteWorkspaceAsync(DeleteWorkspaceRequest request)
AmazonPrometheusAsync
Deletes an AMP workspace.
deleteWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteWorkspace operation.public Future<DeleteWorkspaceResult> deleteWorkspaceAsync(DeleteWorkspaceRequest request, AsyncHandler<DeleteWorkspaceRequest,DeleteWorkspaceResult> asyncHandler)
AmazonPrometheusAsync
Deletes an AMP workspace.
deleteWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DeleteWorkspace operation.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<DescribeWorkspaceResult> describeWorkspaceAsync(DescribeWorkspaceRequest request)
AmazonPrometheusAsync
Describes an existing AMP workspace.
describeWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeWorkspace operation.public Future<DescribeWorkspaceResult> describeWorkspaceAsync(DescribeWorkspaceRequest request, AsyncHandler<DescribeWorkspaceRequest,DescribeWorkspaceResult> asyncHandler)
AmazonPrometheusAsync
Describes an existing AMP workspace.
describeWorkspaceAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a DescribeWorkspace operation.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<ListWorkspacesResult> listWorkspacesAsync(ListWorkspacesRequest request)
AmazonPrometheusAsync
Lists all AMP workspaces, including workspaces being created or deleted.
listWorkspacesAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a ListWorkspaces operation.public Future<ListWorkspacesResult> listWorkspacesAsync(ListWorkspacesRequest request, AsyncHandler<ListWorkspacesRequest,ListWorkspacesResult> asyncHandler)
AmazonPrometheusAsync
Lists all AMP workspaces, including workspaces being created or deleted.
listWorkspacesAsync
in interface AmazonPrometheusAsync
request
- Represents the input of a ListWorkspaces operation.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<UpdateWorkspaceAliasResult> updateWorkspaceAliasAsync(UpdateWorkspaceAliasRequest request)
AmazonPrometheusAsync
Updates an AMP workspace alias.
updateWorkspaceAliasAsync
in interface AmazonPrometheusAsync
request
- Represents the input of an UpdateWorkspaceAlias operation.public Future<UpdateWorkspaceAliasResult> updateWorkspaceAliasAsync(UpdateWorkspaceAliasRequest request, AsyncHandler<UpdateWorkspaceAliasRequest,UpdateWorkspaceAliasResult> asyncHandler)
AmazonPrometheusAsync
Updates an AMP workspace alias.
updateWorkspaceAliasAsync
in interface AmazonPrometheusAsync
request
- Represents the input of an UpdateWorkspaceAlias operation.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 AmazonPrometheus
shutdown
in class AmazonPrometheusClient