Class FanOutRecordPublisher

  • All Implemented Interfaces:
    RecordPublisher

    @Internal
    public class FanOutRecordPublisher
    extends Object
    implements RecordPublisher
    A RecordPublisher that will read and forward records from Kinesis using EFO, to the subscriber. Records are consumed via Enhanced Fan Out subscriptions using SubscribeToShard API.
    • Constructor Detail

      • FanOutRecordPublisher

        public FanOutRecordPublisher​(StartingPosition startingPosition,
                                     String consumerArn,
                                     StreamShardHandle subscribedShard,
                                     KinesisProxyAsyncV2Interface kinesisProxy,
                                     FanOutRecordPublisherConfiguration configuration,
                                     FullJitterBackoff backoff,
                                     java.util.function.Supplier<Boolean> runningSupplier)
        Instantiate a new FanOutRecordPublisher. Consumes data from KDS using EFO SubscribeToShard over AWS SDK V2.x
        Parameters:
        startingPosition - the position in the shard to start consuming from
        consumerArn - the consumer ARN of the stream consumer
        subscribedShard - the shard to consumer from
        kinesisProxy - the proxy used to talk to Kinesis services
        configuration - the record publisher configuration
        runningSupplier - a callback to query if the consumer is still running