Class PollingRecordPublisherFactory
- java.lang.Object
-
- org.apache.flink.streaming.connectors.kinesis.internals.publisher.polling.PollingRecordPublisherFactory
-
- All Implemented Interfaces:
RecordPublisherFactory
@Internal public class PollingRecordPublisherFactory extends Object implements RecordPublisherFactory
ARecordPublisherfactory used to create instances ofPollingRecordPublisher.
-
-
Constructor Summary
Constructors Constructor Description PollingRecordPublisherFactory(KinesisDataFetcher.FlinkKinesisProxyFactory kinesisProxyFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PollingRecordPublishercreate(StartingPosition startingPosition, Properties consumerConfig, org.apache.flink.metrics.MetricGroup metricGroup, StreamShardHandle streamShardHandle)Create aPollingRecordPublisher.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.streaming.connectors.kinesis.internals.publisher.RecordPublisherFactory
close
-
-
-
-
Constructor Detail
-
PollingRecordPublisherFactory
public PollingRecordPublisherFactory(KinesisDataFetcher.FlinkKinesisProxyFactory kinesisProxyFactory)
-
-
Method Detail
-
create
public PollingRecordPublisher create(StartingPosition startingPosition, Properties consumerConfig, org.apache.flink.metrics.MetricGroup metricGroup, StreamShardHandle streamShardHandle) throws InterruptedException
Create aPollingRecordPublisher. AnAdaptivePollingRecordPublisherwill be created should adaptive reads be enabled in the configuration.- Specified by:
createin interfaceRecordPublisherFactory- Parameters:
startingPosition- the position in the shard to start consuming records fromconsumerConfig- the consumer configuration propertiesmetricGroup- the metric group to report metrics tostreamShardHandle- the shard this consumer is subscribed to- Returns:
- a
PollingRecordPublisher - Throws:
InterruptedException
-
-