Class KinesisProxySyncV2
- java.lang.Object
-
- org.apache.flink.streaming.connectors.kinesis.proxy.KinesisProxySyncV2
-
- All Implemented Interfaces:
KinesisProxySyncV2Interface
@Internal public class KinesisProxySyncV2 extends Object implements KinesisProxySyncV2Interface
Kinesis proxy implementation using AWS SDK v2.x - a utility class that is used as a proxy to make calls to AWS Kinesis for several EFO (Enhanced Fan Out) functions, such as de-/registering stream consumers, subscribing to a shard and receiving records from a shard.
-
-
Constructor Summary
Constructors Constructor Description KinesisProxySyncV2(software.amazon.awssdk.services.kinesis.KinesisClient kinesisClient, software.amazon.awssdk.http.SdkHttpClient httpClient, FanOutRecordPublisherConfiguration fanOutRecordPublisherConfiguration, FullJitterBackoff backoff)Create a new KinesisProxyV2.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Destroy any open resources used by the factory.software.amazon.awssdk.services.kinesis.model.DeregisterStreamConsumerResponsederegisterStreamConsumer(String consumerArn)software.amazon.awssdk.services.kinesis.model.DescribeStreamConsumerResponsedescribeStreamConsumer(String streamConsumerArn)software.amazon.awssdk.services.kinesis.model.DescribeStreamConsumerResponsedescribeStreamConsumer(String streamArn, String consumerName)software.amazon.awssdk.services.kinesis.model.DescribeStreamSummaryResponsedescribeStreamSummary(String stream)software.amazon.awssdk.services.kinesis.model.RegisterStreamConsumerResponseregisterStreamConsumer(String streamArn, String consumerName)
-
-
-
Constructor Detail
-
KinesisProxySyncV2
public KinesisProxySyncV2(software.amazon.awssdk.services.kinesis.KinesisClient kinesisClient, software.amazon.awssdk.http.SdkHttpClient httpClient, FanOutRecordPublisherConfiguration fanOutRecordPublisherConfiguration, FullJitterBackoff backoff)Create a new KinesisProxyV2.- Parameters:
kinesisClient- AWS SDK v2 Kinesis client used to communicate with AWS serviceshttpClient- the underlying HTTP client, reference required for close onlyfanOutRecordPublisherConfiguration- the configuration for Fan Out featuresbackoff- the backoff utility used to introduce Full Jitter delays
-
-
Method Detail
-
close
public void close()
Description copied from interface:KinesisProxySyncV2InterfaceDestroy any open resources used by the factory.- Specified by:
closein interfaceKinesisProxySyncV2Interface
-
describeStreamSummary
public software.amazon.awssdk.services.kinesis.model.DescribeStreamSummaryResponse describeStreamSummary(String stream) throws InterruptedException, ExecutionException
- Specified by:
describeStreamSummaryin interfaceKinesisProxySyncV2Interface- Throws:
InterruptedExceptionExecutionException
-
describeStreamConsumer
public software.amazon.awssdk.services.kinesis.model.DescribeStreamConsumerResponse describeStreamConsumer(String streamArn, String consumerName) throws InterruptedException, ExecutionException
- Specified by:
describeStreamConsumerin interfaceKinesisProxySyncV2Interface- Throws:
InterruptedExceptionExecutionException
-
describeStreamConsumer
public software.amazon.awssdk.services.kinesis.model.DescribeStreamConsumerResponse describeStreamConsumer(String streamConsumerArn) throws InterruptedException, ExecutionException
- Specified by:
describeStreamConsumerin interfaceKinesisProxySyncV2Interface- Throws:
InterruptedExceptionExecutionException
-
registerStreamConsumer
public software.amazon.awssdk.services.kinesis.model.RegisterStreamConsumerResponse registerStreamConsumer(String streamArn, String consumerName) throws InterruptedException, ExecutionException
- Specified by:
registerStreamConsumerin interfaceKinesisProxySyncV2Interface- Throws:
InterruptedExceptionExecutionException
-
deregisterStreamConsumer
public software.amazon.awssdk.services.kinesis.model.DeregisterStreamConsumerResponse deregisterStreamConsumer(String consumerArn) throws InterruptedException, ExecutionException
- Specified by:
deregisterStreamConsumerin interfaceKinesisProxySyncV2Interface- Throws:
InterruptedExceptionExecutionException
-
-