Interface RecordPublisherFactory
-
- All Known Implementing Classes:
FanOutRecordPublisherFactory,PollingRecordPublisherFactory
@Internal public interface RecordPublisherFactoryA factory interface used to create instances ofRecordPublisher.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()Destroy any open resources used by the factory.RecordPublishercreate(StartingPosition startingPosition, Properties consumerConfig, org.apache.flink.metrics.MetricGroup metricGroup, StreamShardHandle streamShardHandle)Create aRecordPublisher.
-
-
-
Method Detail
-
create
RecordPublisher create(StartingPosition startingPosition, Properties consumerConfig, org.apache.flink.metrics.MetricGroup metricGroup, StreamShardHandle streamShardHandle) throws InterruptedException
Create aRecordPublisher.- Parameters:
startingPosition- the position in the shard to start consuming records fromconsumerConfig- the properties used to configure theRecordPublisher.metricGroup- theMetricGroupused to report metrics tostreamShardHandle- the stream shard in which to consume from- Returns:
- the constructed
RecordPublisher - Throws:
InterruptedException
-
close
default void close()
Destroy any open resources used by the factory.
-
-