Interface RecordPublisher
-
- All Known Implementing Classes:
AdaptivePollingRecordPublisher,FanOutRecordPublisher,PollingRecordPublisher
@Internal public interface RecordPublisherARecordPublisherwill consume records from an external stream and deliver them to the registered subscriber.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRecordPublisher.RecordBatchConsumerAn interface used to collect record batches, and reply with the latest consumed sequence number.static classRecordPublisher.RecordPublisherRunResultA status enum to represent whether a shard has been fully consumed.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecordPublisher.RecordPublisherRunResultrun(RecordPublisher.RecordBatchConsumer recordBatchConsumer)Run the record publisher.
-
-
-
Method Detail
-
run
RecordPublisher.RecordPublisherRunResult run(RecordPublisher.RecordBatchConsumer recordBatchConsumer) throws InterruptedException
Run the record publisher. Records will be consumed from the stream and published to the consumer. The number of batches retrieved by a single invocation will vary based on implementation.- Parameters:
recordBatchConsumer- the record batch consumer in which to output records- Returns:
- a status enum to represent whether a shard has been fully consumed
- Throws:
InterruptedException
-
-