@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSKafkaAsyncClient extends AWSKafkaClient implements AWSKafkaAsync
AsyncHandler can be used to receive notification when an
asynchronous operation completes.
The operations for managing an Amazon MSK cluster.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AWSKafkaAsyncClientBuilder |
asyncBuilder() |
Future<CreateClusterResult> |
createClusterAsync(CreateClusterRequest request)
Creates a new MSK cluster.
|
Future<CreateClusterResult> |
createClusterAsync(CreateClusterRequest request,
AsyncHandler<CreateClusterRequest,CreateClusterResult> asyncHandler)
Creates a new MSK cluster.
|
Future<DeleteClusterResult> |
deleteClusterAsync(DeleteClusterRequest request)
Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
|
Future<DeleteClusterResult> |
deleteClusterAsync(DeleteClusterRequest request,
AsyncHandler<DeleteClusterRequest,DeleteClusterResult> asyncHandler)
Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
|
Future<DescribeClusterResult> |
describeClusterAsync(DescribeClusterRequest request)
Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
|
Future<DescribeClusterResult> |
describeClusterAsync(DescribeClusterRequest request,
AsyncHandler<DescribeClusterRequest,DescribeClusterResult> asyncHandler)
Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
|
Future<GetBootstrapBrokersResult> |
getBootstrapBrokersAsync(GetBootstrapBrokersRequest request)
A list of brokers that a client application can use to bootstrap.
|
Future<GetBootstrapBrokersResult> |
getBootstrapBrokersAsync(GetBootstrapBrokersRequest request,
AsyncHandler<GetBootstrapBrokersRequest,GetBootstrapBrokersResult> asyncHandler)
A list of brokers that a client application can use to bootstrap.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<ListClustersResult> |
listClustersAsync(ListClustersRequest request)
Returns a list of clusters in an account.
|
Future<ListClustersResult> |
listClustersAsync(ListClustersRequest request,
AsyncHandler<ListClustersRequest,ListClustersResult> asyncHandler)
Returns a list of clusters in an account.
|
Future<ListNodesResult> |
listNodesAsync(ListNodesRequest request)
Returns a list of the broker nodes in the cluster.
|
Future<ListNodesResult> |
listNodesAsync(ListNodesRequest request,
AsyncHandler<ListNodesRequest,ListNodesResult> asyncHandler)
Returns a list of the broker nodes in the cluster.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, createCluster, deleteCluster, describeCluster, getBootstrapBrokers, getCachedResponseMetadata, listClusters, listNodesaddRequestHandler, 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, waitcreateCluster, deleteCluster, describeCluster, getBootstrapBrokers, getCachedResponseMetadata, listClusters, listNodespublic static AWSKafkaAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateClusterResult> createClusterAsync(CreateClusterRequest request)
AWSKafkaAsyncCreates a new MSK cluster.
createClusterAsync in interface AWSKafkaAsyncpublic Future<CreateClusterResult> createClusterAsync(CreateClusterRequest request, AsyncHandler<CreateClusterRequest,CreateClusterResult> asyncHandler)
AWSKafkaAsyncCreates a new MSK cluster.
createClusterAsync in interface AWSKafkaAsyncasyncHandler - 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<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest request)
AWSKafkaAsyncDeletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
deleteClusterAsync in interface AWSKafkaAsyncpublic Future<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest request, AsyncHandler<DeleteClusterRequest,DeleteClusterResult> asyncHandler)
AWSKafkaAsyncDeletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
deleteClusterAsync in interface AWSKafkaAsyncasyncHandler - 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<DescribeClusterResult> describeClusterAsync(DescribeClusterRequest request)
AWSKafkaAsyncReturns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
describeClusterAsync in interface AWSKafkaAsyncpublic Future<DescribeClusterResult> describeClusterAsync(DescribeClusterRequest request, AsyncHandler<DescribeClusterRequest,DescribeClusterResult> asyncHandler)
AWSKafkaAsyncReturns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
describeClusterAsync in interface AWSKafkaAsyncasyncHandler - 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<GetBootstrapBrokersResult> getBootstrapBrokersAsync(GetBootstrapBrokersRequest request)
AWSKafkaAsyncA list of brokers that a client application can use to bootstrap.
getBootstrapBrokersAsync in interface AWSKafkaAsyncpublic Future<GetBootstrapBrokersResult> getBootstrapBrokersAsync(GetBootstrapBrokersRequest request, AsyncHandler<GetBootstrapBrokersRequest,GetBootstrapBrokersResult> asyncHandler)
AWSKafkaAsyncA list of brokers that a client application can use to bootstrap.
getBootstrapBrokersAsync in interface AWSKafkaAsyncasyncHandler - 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<ListClustersResult> listClustersAsync(ListClustersRequest request)
AWSKafkaAsyncReturns a list of clusters in an account.
listClustersAsync in interface AWSKafkaAsyncpublic Future<ListClustersResult> listClustersAsync(ListClustersRequest request, AsyncHandler<ListClustersRequest,ListClustersResult> asyncHandler)
AWSKafkaAsyncReturns a list of clusters in an account.
listClustersAsync in interface AWSKafkaAsyncasyncHandler - 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<ListNodesResult> listNodesAsync(ListNodesRequest request)
AWSKafkaAsyncReturns a list of the broker nodes in the cluster.
listNodesAsync in interface AWSKafkaAsyncpublic Future<ListNodesResult> listNodesAsync(ListNodesRequest request, AsyncHandler<ListNodesRequest,ListNodesResult> asyncHandler)
AWSKafkaAsyncReturns a list of the broker nodes in the cluster.
listNodesAsync in interface AWSKafkaAsyncasyncHandler - 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 AWSKafkashutdown in class AmazonWebServiceClientCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.