@Internal public class KinesisProxyAsyncV2 extends Object implements KinesisProxyAsyncV2Interface
| Constructor and Description |
|---|
KinesisProxyAsyncV2(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisAsyncClient,
software.amazon.awssdk.http.async.SdkAsyncHttpClient asyncHttpClient,
FanOutRecordPublisherConfiguration fanOutRecordPublisherConfiguration)
Create a new KinesisProxyV2.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Destroy any open resources used by the factory.
|
CompletableFuture<Void> |
subscribeToShard(software.amazon.awssdk.services.kinesis.model.SubscribeToShardRequest request,
software.amazon.awssdk.services.kinesis.model.SubscribeToShardResponseHandler responseHandler) |
public KinesisProxyAsyncV2(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisAsyncClient,
software.amazon.awssdk.http.async.SdkAsyncHttpClient asyncHttpClient,
FanOutRecordPublisherConfiguration fanOutRecordPublisherConfiguration)
kinesisAsyncClient - AWS SDK v2 Kinesis client used to communicate with AWS servicesasyncHttpClient - the underlying HTTP client, reference required for close onlyfanOutRecordPublisherConfiguration - the configuration for Fan Out featurespublic CompletableFuture<Void> subscribeToShard(software.amazon.awssdk.services.kinesis.model.SubscribeToShardRequest request, software.amazon.awssdk.services.kinesis.model.SubscribeToShardResponseHandler responseHandler)
subscribeToShard in interface KinesisProxyAsyncV2Interfacepublic void close()
KinesisProxyAsyncV2Interfaceclose in interface KinesisProxyAsyncV2InterfaceCopyright © 2022–2024 The Apache Software Foundation. All rights reserved.