@Internal public class AdaptivePollingRecordPublisher extends PollingRecordPublisher
PollingRecordPublisher.
Kinesis Streams have quotas on the transactions per second, and throughout. This class attempts
to balance quotas and mitigate back off errors.RecordPublisher.RecordBatchConsumer, RecordPublisher.RecordPublisherRunResult| Modifier and Type | Method and Description |
|---|---|
RecordPublisher.RecordPublisherRunResult |
run(RecordPublisher.RecordBatchConsumer consumer)
Run the record publisher.
|
runpublic RecordPublisher.RecordPublisherRunResult run(RecordPublisher.RecordBatchConsumer consumer) throws InterruptedException
RecordPublisherrun in interface RecordPublisherrun in class PollingRecordPublisherconsumer - the record batch consumer in which to output recordsInterruptedExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.