@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface KafkaConnectAsyncClient extends AwsClient
builder()
method.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static KafkaConnectAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
KafkaConnectAsyncClient. |
static KafkaConnectAsyncClient |
create()
Create a
KafkaConnectAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<CreateConnectorResponse> |
createConnector(Consumer<CreateConnectorRequest.Builder> createConnectorRequest)
Creates a connector using the specified properties.
|
default CompletableFuture<CreateConnectorResponse> |
createConnector(CreateConnectorRequest createConnectorRequest)
Creates a connector using the specified properties.
|
default CompletableFuture<CreateCustomPluginResponse> |
createCustomPlugin(Consumer<CreateCustomPluginRequest.Builder> createCustomPluginRequest)
Creates a custom plugin using the specified properties.
|
default CompletableFuture<CreateCustomPluginResponse> |
createCustomPlugin(CreateCustomPluginRequest createCustomPluginRequest)
Creates a custom plugin using the specified properties.
|
default CompletableFuture<CreateWorkerConfigurationResponse> |
createWorkerConfiguration(Consumer<CreateWorkerConfigurationRequest.Builder> createWorkerConfigurationRequest)
Creates a worker configuration using the specified properties.
|
default CompletableFuture<CreateWorkerConfigurationResponse> |
createWorkerConfiguration(CreateWorkerConfigurationRequest createWorkerConfigurationRequest)
Creates a worker configuration using the specified properties.
|
default CompletableFuture<DeleteConnectorResponse> |
deleteConnector(Consumer<DeleteConnectorRequest.Builder> deleteConnectorRequest)
Deletes the specified connector.
|
default CompletableFuture<DeleteConnectorResponse> |
deleteConnector(DeleteConnectorRequest deleteConnectorRequest)
Deletes the specified connector.
|
default CompletableFuture<DeleteCustomPluginResponse> |
deleteCustomPlugin(Consumer<DeleteCustomPluginRequest.Builder> deleteCustomPluginRequest)
Deletes a custom plugin.
|
default CompletableFuture<DeleteCustomPluginResponse> |
deleteCustomPlugin(DeleteCustomPluginRequest deleteCustomPluginRequest)
Deletes a custom plugin.
|
default CompletableFuture<DescribeConnectorResponse> |
describeConnector(Consumer<DescribeConnectorRequest.Builder> describeConnectorRequest)
Returns summary information about the connector.
|
default CompletableFuture<DescribeConnectorResponse> |
describeConnector(DescribeConnectorRequest describeConnectorRequest)
Returns summary information about the connector.
|
default CompletableFuture<DescribeCustomPluginResponse> |
describeCustomPlugin(Consumer<DescribeCustomPluginRequest.Builder> describeCustomPluginRequest)
A summary description of the custom plugin.
|
default CompletableFuture<DescribeCustomPluginResponse> |
describeCustomPlugin(DescribeCustomPluginRequest describeCustomPluginRequest)
A summary description of the custom plugin.
|
default CompletableFuture<DescribeWorkerConfigurationResponse> |
describeWorkerConfiguration(Consumer<DescribeWorkerConfigurationRequest.Builder> describeWorkerConfigurationRequest)
Returns information about a worker configuration.
|
default CompletableFuture<DescribeWorkerConfigurationResponse> |
describeWorkerConfiguration(DescribeWorkerConfigurationRequest describeWorkerConfigurationRequest)
Returns information about a worker configuration.
|
default CompletableFuture<ListConnectorsResponse> |
listConnectors(Consumer<ListConnectorsRequest.Builder> listConnectorsRequest)
Returns a list of all the connectors in this account and Region.
|
default CompletableFuture<ListConnectorsResponse> |
listConnectors(ListConnectorsRequest listConnectorsRequest)
Returns a list of all the connectors in this account and Region.
|
default ListConnectorsPublisher |
listConnectorsPaginator(Consumer<ListConnectorsRequest.Builder> listConnectorsRequest)
Returns a list of all the connectors in this account and Region.
|
default ListConnectorsPublisher |
listConnectorsPaginator(ListConnectorsRequest listConnectorsRequest)
Returns a list of all the connectors in this account and Region.
|
default CompletableFuture<ListCustomPluginsResponse> |
listCustomPlugins(Consumer<ListCustomPluginsRequest.Builder> listCustomPluginsRequest)
Returns a list of all of the custom plugins in this account and Region.
|
default CompletableFuture<ListCustomPluginsResponse> |
listCustomPlugins(ListCustomPluginsRequest listCustomPluginsRequest)
Returns a list of all of the custom plugins in this account and Region.
|
default ListCustomPluginsPublisher |
listCustomPluginsPaginator(Consumer<ListCustomPluginsRequest.Builder> listCustomPluginsRequest)
Returns a list of all of the custom plugins in this account and Region.
|
default ListCustomPluginsPublisher |
listCustomPluginsPaginator(ListCustomPluginsRequest listCustomPluginsRequest)
Returns a list of all of the custom plugins in this account and Region.
|
default CompletableFuture<ListWorkerConfigurationsResponse> |
listWorkerConfigurations(Consumer<ListWorkerConfigurationsRequest.Builder> listWorkerConfigurationsRequest)
Returns a list of all of the worker configurations in this account and Region.
|
default CompletableFuture<ListWorkerConfigurationsResponse> |
listWorkerConfigurations(ListWorkerConfigurationsRequest listWorkerConfigurationsRequest)
Returns a list of all of the worker configurations in this account and Region.
|
default ListWorkerConfigurationsPublisher |
listWorkerConfigurationsPaginator(Consumer<ListWorkerConfigurationsRequest.Builder> listWorkerConfigurationsRequest)
Returns a list of all of the worker configurations in this account and Region.
|
default ListWorkerConfigurationsPublisher |
listWorkerConfigurationsPaginator(ListWorkerConfigurationsRequest listWorkerConfigurationsRequest)
Returns a list of all of the worker configurations in this account and Region.
|
default KafkaConnectServiceClientConfiguration |
serviceClientConfiguration() |
default CompletableFuture<UpdateConnectorResponse> |
updateConnector(Consumer<UpdateConnectorRequest.Builder> updateConnectorRequest)
Updates the specified connector.
|
default CompletableFuture<UpdateConnectorResponse> |
updateConnector(UpdateConnectorRequest updateConnectorRequest)
Updates the specified connector.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.default CompletableFuture<CreateConnectorResponse> createConnector(CreateConnectorRequest createConnectorRequest)
Creates a connector using the specified properties.
createConnectorRequest - default CompletableFuture<CreateConnectorResponse> createConnector(Consumer<CreateConnectorRequest.Builder> createConnectorRequest)
Creates a connector using the specified properties.
This is a convenience which creates an instance of the CreateConnectorRequest.Builder avoiding the need
to create one manually via CreateConnectorRequest.builder()
createConnectorRequest - A Consumer that will call methods on
CreateConnectorRequest.Builder to create a
request.default CompletableFuture<CreateCustomPluginResponse> createCustomPlugin(CreateCustomPluginRequest createCustomPluginRequest)
Creates a custom plugin using the specified properties.
createCustomPluginRequest - default CompletableFuture<CreateCustomPluginResponse> createCustomPlugin(Consumer<CreateCustomPluginRequest.Builder> createCustomPluginRequest)
Creates a custom plugin using the specified properties.
This is a convenience which creates an instance of the CreateCustomPluginRequest.Builder avoiding the
need to create one manually via CreateCustomPluginRequest.builder()
createCustomPluginRequest - A Consumer that will call methods on
CreateCustomPluginRequest.Builder to create a
request.default CompletableFuture<CreateWorkerConfigurationResponse> createWorkerConfiguration(CreateWorkerConfigurationRequest createWorkerConfigurationRequest)
Creates a worker configuration using the specified properties.
createWorkerConfigurationRequest - default CompletableFuture<CreateWorkerConfigurationResponse> createWorkerConfiguration(Consumer<CreateWorkerConfigurationRequest.Builder> createWorkerConfigurationRequest)
Creates a worker configuration using the specified properties.
This is a convenience which creates an instance of the CreateWorkerConfigurationRequest.Builder avoiding
the need to create one manually via CreateWorkerConfigurationRequest.builder()
createWorkerConfigurationRequest - A Consumer that will call methods on
CreateWorkerConfigurationRequest.Builder to
create a request.default CompletableFuture<DeleteConnectorResponse> deleteConnector(DeleteConnectorRequest deleteConnectorRequest)
Deletes the specified connector.
deleteConnectorRequest - default CompletableFuture<DeleteConnectorResponse> deleteConnector(Consumer<DeleteConnectorRequest.Builder> deleteConnectorRequest)
Deletes the specified connector.
This is a convenience which creates an instance of the DeleteConnectorRequest.Builder avoiding the need
to create one manually via DeleteConnectorRequest.builder()
deleteConnectorRequest - A Consumer that will call methods on
DeleteConnectorRequest.Builder to create a
request.default CompletableFuture<DeleteCustomPluginResponse> deleteCustomPlugin(DeleteCustomPluginRequest deleteCustomPluginRequest)
Deletes a custom plugin.
deleteCustomPluginRequest - default CompletableFuture<DeleteCustomPluginResponse> deleteCustomPlugin(Consumer<DeleteCustomPluginRequest.Builder> deleteCustomPluginRequest)
Deletes a custom plugin.
This is a convenience which creates an instance of the DeleteCustomPluginRequest.Builder avoiding the
need to create one manually via DeleteCustomPluginRequest.builder()
deleteCustomPluginRequest - A Consumer that will call methods on
DeleteCustomPluginRequest.Builder to create a
request.default CompletableFuture<DescribeConnectorResponse> describeConnector(DescribeConnectorRequest describeConnectorRequest)
Returns summary information about the connector.
describeConnectorRequest - default CompletableFuture<DescribeConnectorResponse> describeConnector(Consumer<DescribeConnectorRequest.Builder> describeConnectorRequest)
Returns summary information about the connector.
This is a convenience which creates an instance of the DescribeConnectorRequest.Builder avoiding the need
to create one manually via DescribeConnectorRequest.builder()
describeConnectorRequest - A Consumer that will call methods on
DescribeConnectorRequest.Builder to create a
request.default CompletableFuture<DescribeCustomPluginResponse> describeCustomPlugin(DescribeCustomPluginRequest describeCustomPluginRequest)
A summary description of the custom plugin.
describeCustomPluginRequest - default CompletableFuture<DescribeCustomPluginResponse> describeCustomPlugin(Consumer<DescribeCustomPluginRequest.Builder> describeCustomPluginRequest)
A summary description of the custom plugin.
This is a convenience which creates an instance of the DescribeCustomPluginRequest.Builder avoiding the
need to create one manually via DescribeCustomPluginRequest.builder()
describeCustomPluginRequest - A Consumer that will call methods on
DescribeCustomPluginRequest.Builder to create a
request.default CompletableFuture<DescribeWorkerConfigurationResponse> describeWorkerConfiguration(DescribeWorkerConfigurationRequest describeWorkerConfigurationRequest)
Returns information about a worker configuration.
describeWorkerConfigurationRequest - default CompletableFuture<DescribeWorkerConfigurationResponse> describeWorkerConfiguration(Consumer<DescribeWorkerConfigurationRequest.Builder> describeWorkerConfigurationRequest)
Returns information about a worker configuration.
This is a convenience which creates an instance of the DescribeWorkerConfigurationRequest.Builder
avoiding the need to create one manually via DescribeWorkerConfigurationRequest.builder()
describeWorkerConfigurationRequest - A Consumer that will call methods on
DescribeWorkerConfigurationRequest.Builder to
create a request.default CompletableFuture<ListConnectorsResponse> listConnectors(ListConnectorsRequest listConnectorsRequest)
Returns a list of all the connectors in this account and Region. The list is limited to connectors whose name starts with the specified prefix. The response also includes a description of each of the listed connectors.
listConnectorsRequest - default CompletableFuture<ListConnectorsResponse> listConnectors(Consumer<ListConnectorsRequest.Builder> listConnectorsRequest)
Returns a list of all the connectors in this account and Region. The list is limited to connectors whose name starts with the specified prefix. The response also includes a description of each of the listed connectors.
This is a convenience which creates an instance of the ListConnectorsRequest.Builder avoiding the need to
create one manually via ListConnectorsRequest.builder()
listConnectorsRequest - A Consumer that will call methods on
ListConnectorsRequest.Builder to create a
request.default ListConnectorsPublisher listConnectorsPaginator(ListConnectorsRequest listConnectorsRequest)
Returns a list of all the connectors in this account and Region. The list is limited to connectors whose name starts with the specified prefix. The response also includes a description of each of the listed connectors.
This is a variant of
listConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsPublisher publisher = client.listConnectorsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsPublisher publisher = client.listConnectorsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest) operation.
listConnectorsRequest - default ListConnectorsPublisher listConnectorsPaginator(Consumer<ListConnectorsRequest.Builder> listConnectorsRequest)
Returns a list of all the connectors in this account and Region. The list is limited to connectors whose name starts with the specified prefix. The response also includes a description of each of the listed connectors.
This is a variant of
listConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsPublisher publisher = client.listConnectorsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsPublisher publisher = client.listConnectorsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest) operation.
This is a convenience which creates an instance of the ListConnectorsRequest.Builder avoiding the need to
create one manually via ListConnectorsRequest.builder()
listConnectorsRequest - A Consumer that will call methods on
ListConnectorsRequest.Builder to create a
request.default CompletableFuture<ListCustomPluginsResponse> listCustomPlugins(ListCustomPluginsRequest listCustomPluginsRequest)
Returns a list of all of the custom plugins in this account and Region.
listCustomPluginsRequest - default CompletableFuture<ListCustomPluginsResponse> listCustomPlugins(Consumer<ListCustomPluginsRequest.Builder> listCustomPluginsRequest)
Returns a list of all of the custom plugins in this account and Region.
This is a convenience which creates an instance of the ListCustomPluginsRequest.Builder avoiding the need
to create one manually via ListCustomPluginsRequest.builder()
listCustomPluginsRequest - A Consumer that will call methods on
ListCustomPluginsRequest.Builder to create a
request.default ListCustomPluginsPublisher listCustomPluginsPaginator(ListCustomPluginsRequest listCustomPluginsRequest)
Returns a list of all of the custom plugins in this account and Region.
This is a variant of
listCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsPublisher publisher = client.listCustomPluginsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsPublisher publisher = client.listCustomPluginsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)
operation.
listCustomPluginsRequest - default ListCustomPluginsPublisher listCustomPluginsPaginator(Consumer<ListCustomPluginsRequest.Builder> listCustomPluginsRequest)
Returns a list of all of the custom plugins in this account and Region.
This is a variant of
listCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsPublisher publisher = client.listCustomPluginsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsPublisher publisher = client.listCustomPluginsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)
operation.
This is a convenience which creates an instance of the ListCustomPluginsRequest.Builder avoiding the need
to create one manually via ListCustomPluginsRequest.builder()
listCustomPluginsRequest - A Consumer that will call methods on
ListCustomPluginsRequest.Builder to create a
request.default CompletableFuture<ListWorkerConfigurationsResponse> listWorkerConfigurations(ListWorkerConfigurationsRequest listWorkerConfigurationsRequest)
Returns a list of all of the worker configurations in this account and Region.
listWorkerConfigurationsRequest - default CompletableFuture<ListWorkerConfigurationsResponse> listWorkerConfigurations(Consumer<ListWorkerConfigurationsRequest.Builder> listWorkerConfigurationsRequest)
Returns a list of all of the worker configurations in this account and Region.
This is a convenience which creates an instance of the ListWorkerConfigurationsRequest.Builder avoiding
the need to create one manually via ListWorkerConfigurationsRequest.builder()
listWorkerConfigurationsRequest - A Consumer that will call methods on
ListWorkerConfigurationsRequest.Builder to
create a request.default ListWorkerConfigurationsPublisher listWorkerConfigurationsPaginator(ListWorkerConfigurationsRequest listWorkerConfigurationsRequest)
Returns a list of all of the worker configurations in this account and Region.
This is a variant of
listWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsPublisher publisher = client.listWorkerConfigurationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsPublisher publisher = client.listWorkerConfigurationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)
operation.
listWorkerConfigurationsRequest - default ListWorkerConfigurationsPublisher listWorkerConfigurationsPaginator(Consumer<ListWorkerConfigurationsRequest.Builder> listWorkerConfigurationsRequest)
Returns a list of all of the worker configurations in this account and Region.
This is a variant of
listWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsPublisher publisher = client.listWorkerConfigurationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsPublisher publisher = client.listWorkerConfigurationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)
operation.
This is a convenience which creates an instance of the ListWorkerConfigurationsRequest.Builder avoiding
the need to create one manually via ListWorkerConfigurationsRequest.builder()
listWorkerConfigurationsRequest - A Consumer that will call methods on
ListWorkerConfigurationsRequest.Builder to
create a request.default CompletableFuture<UpdateConnectorResponse> updateConnector(UpdateConnectorRequest updateConnectorRequest)
Updates the specified connector.
updateConnectorRequest - default CompletableFuture<UpdateConnectorResponse> updateConnector(Consumer<UpdateConnectorRequest.Builder> updateConnectorRequest)
Updates the specified connector.
This is a convenience which creates an instance of the UpdateConnectorRequest.Builder avoiding the need
to create one manually via UpdateConnectorRequest.builder()
updateConnectorRequest - A Consumer that will call methods on
UpdateConnectorRequest.Builder to create a
request.default KafkaConnectServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientstatic KafkaConnectAsyncClient create()
KafkaConnectAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static KafkaConnectAsyncClientBuilder builder()
KafkaConnectAsyncClient.Copyright © 2023. All rights reserved.