Class KinesisAsyncStreamProxy
- java.lang.Object
-
- org.apache.flink.connector.kinesis.source.proxy.KinesisAsyncStreamProxy
-
- All Implemented Interfaces:
Closeable,AutoCloseable,AsyncStreamProxy
@Internal public class KinesisAsyncStreamProxy extends Object implements AsyncStreamProxy
Implementation of async stream proxy for the Kinesis client.
-
-
Constructor Summary
Constructors Constructor Description KinesisAsyncStreamProxy(software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisAsyncClient, software.amazon.awssdk.http.async.SdkAsyncHttpClient asyncHttpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()CompletableFuture<Void>subscribeToShard(String consumerArn, String shardId, StartingPosition startingPosition, software.amazon.awssdk.services.kinesis.model.SubscribeToShardResponseHandler responseHandler)
-
-
-
Method Detail
-
subscribeToShard
public CompletableFuture<Void> subscribeToShard(String consumerArn, String shardId, StartingPosition startingPosition, software.amazon.awssdk.services.kinesis.model.SubscribeToShardResponseHandler responseHandler)
- Specified by:
subscribeToShardin interfaceAsyncStreamProxy
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-