@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_METRIC
ENDPOINT_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, listNodes
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
createCluster, deleteCluster, describeCluster, getBootstrapBrokers, getCachedResponseMetadata, listClusters, listNodes
public static AWSKafkaAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateClusterResult> createClusterAsync(CreateClusterRequest request)
AWSKafkaAsync
Creates a new MSK cluster.
createClusterAsync
in interface AWSKafkaAsync
public Future<CreateClusterResult> createClusterAsync(CreateClusterRequest request, AsyncHandler<CreateClusterRequest,CreateClusterResult> asyncHandler)
AWSKafkaAsync
Creates a new MSK cluster.
createClusterAsync
in interface AWSKafkaAsync
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<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest request)
AWSKafkaAsync
Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
deleteClusterAsync
in interface AWSKafkaAsync
public Future<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest request, AsyncHandler<DeleteClusterRequest,DeleteClusterResult> asyncHandler)
AWSKafkaAsync
Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.
deleteClusterAsync
in interface AWSKafkaAsync
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<DescribeClusterResult> describeClusterAsync(DescribeClusterRequest request)
AWSKafkaAsync
Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
describeClusterAsync
in interface AWSKafkaAsync
public Future<DescribeClusterResult> describeClusterAsync(DescribeClusterRequest request, AsyncHandler<DescribeClusterRequest,DescribeClusterResult> asyncHandler)
AWSKafkaAsync
Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
describeClusterAsync
in interface AWSKafkaAsync
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<GetBootstrapBrokersResult> getBootstrapBrokersAsync(GetBootstrapBrokersRequest request)
AWSKafkaAsync
A list of brokers that a client application can use to bootstrap.
getBootstrapBrokersAsync
in interface AWSKafkaAsync
public Future<GetBootstrapBrokersResult> getBootstrapBrokersAsync(GetBootstrapBrokersRequest request, AsyncHandler<GetBootstrapBrokersRequest,GetBootstrapBrokersResult> asyncHandler)
AWSKafkaAsync
A list of brokers that a client application can use to bootstrap.
getBootstrapBrokersAsync
in interface AWSKafkaAsync
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<ListClustersResult> listClustersAsync(ListClustersRequest request)
AWSKafkaAsync
Returns a list of clusters in an account.
listClustersAsync
in interface AWSKafkaAsync
public Future<ListClustersResult> listClustersAsync(ListClustersRequest request, AsyncHandler<ListClustersRequest,ListClustersResult> asyncHandler)
AWSKafkaAsync
Returns a list of clusters in an account.
listClustersAsync
in interface AWSKafkaAsync
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<ListNodesResult> listNodesAsync(ListNodesRequest request)
AWSKafkaAsync
Returns a list of the broker nodes in the cluster.
listNodesAsync
in interface AWSKafkaAsync
public Future<ListNodesResult> listNodesAsync(ListNodesRequest request, AsyncHandler<ListNodesRequest,ListNodesResult> asyncHandler)
AWSKafkaAsync
Returns a list of the broker nodes in the cluster.
listNodesAsync
in interface AWSKafkaAsync
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 AWSKafka
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.