public interface RecordsPublisher extends org.reactivestreams.Publisher<RecordsRetrieved>
Modifier and Type | Method and Description |
---|---|
RequestDetails |
getLastSuccessfulRequestDetails()
Gets last successful request details.
|
default void |
notify(RecordsDeliveryAck ack)
Notify the publisher on receipt of a data event.
|
void |
restartFrom(RecordsRetrieved recordsRetrieved)
Restart from the last accepted and processed
|
void |
shutdown()
Shutdowns the publisher.
|
void |
start(ExtendedSequenceNumber extendedSequenceNumber,
InitialPositionInStreamExtended initialPositionInStreamExtended)
Initializes the publisher with where to start processing.
|
void start(ExtendedSequenceNumber extendedSequenceNumber, InitialPositionInStreamExtended initialPositionInStreamExtended)
extendedSequenceNumber
- the sequence number to start processing frominitialPositionInStreamExtended
- if there is no sequence number the initial position to usevoid restartFrom(RecordsRetrieved recordsRetrieved)
recordsRetrieved
- the processRecordsInput to restart fromvoid shutdown()
RequestDetails getLastSuccessfulRequestDetails()
default void notify(RecordsDeliveryAck ack)
ack
- acknowledgement received from the subscriber.Copyright © 2021. All rights reserved.