Class FanOutRecordPublisherFactory
- java.lang.Object
-
- org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout.FanOutRecordPublisherFactory
-
- All Implemented Interfaces:
RecordPublisherFactory
@Internal public class FanOutRecordPublisherFactory extends Object implements RecordPublisherFactory
ARecordPublisherfactory used to create instances ofFanOutRecordPublisher.
-
-
Constructor Summary
Constructors Constructor Description FanOutRecordPublisherFactory(KinesisProxyAsyncV2Interface kinesisProxy)Instantiate a factory responsible for creatingFanOutRecordPublisher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Destroy any open resources used by the factory.FanOutRecordPublishercreate(StartingPosition startingPosition, Properties consumerConfig, org.apache.flink.metrics.MetricGroup metricGroup, StreamShardHandle streamShardHandle)Create aFanOutRecordPublisher.
-
-
-
Constructor Detail
-
FanOutRecordPublisherFactory
public FanOutRecordPublisherFactory(KinesisProxyAsyncV2Interface kinesisProxy)
Instantiate a factory responsible for creatingFanOutRecordPublisher.- Parameters:
kinesisProxy- the singleton proxy used by all record publishers created by this factory
-
-
Method Detail
-
create
public FanOutRecordPublisher create(StartingPosition startingPosition, Properties consumerConfig, org.apache.flink.metrics.MetricGroup metricGroup, StreamShardHandle streamShardHandle)
Create aFanOutRecordPublisher.- Specified by:
createin interfaceRecordPublisherFactory- Parameters:
startingPosition- the starting position in the shard to start consuming fromconsumerConfig- the consumer configuration propertiesmetricGroup- the metric group to report metrics tostreamShardHandle- the shard this consumer is subscribed to- Returns:
- a
FanOutRecordPublisher
-
close
public void close()
Description copied from interface:RecordPublisherFactoryDestroy any open resources used by the factory.- Specified by:
closein interfaceRecordPublisherFactory
-
-