public class BlockingRecordsPublisher extends Object implements RecordsPublisher
| Constructor and Description |
|---|
BlockingRecordsPublisher(int maxRecordsPerCall,
GetRecordsRetrievalStrategy getRecordsRetrievalStrategy) |
| Modifier and Type | Method and Description |
|---|---|
RequestDetails |
getLastSuccessfulRequestDetails()
Gets last successful request details.
|
ProcessRecordsInput |
getNextResult() |
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 |
subscribe(org.reactivestreams.Subscriber<? super RecordsRetrieved> s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnotifypublic BlockingRecordsPublisher(int maxRecordsPerCall,
GetRecordsRetrievalStrategy getRecordsRetrievalStrategy)
public void start(ExtendedSequenceNumber extendedSequenceNumber, InitialPositionInStreamExtended initialPositionInStreamExtended)
RecordsPublisherstart in interface RecordsPublisherextendedSequenceNumber - the sequence number to start processing frominitialPositionInStreamExtended - if there is no sequence number the initial position to usepublic ProcessRecordsInput getNextResult()
public void shutdown()
RecordsPublishershutdown in interface RecordsPublisherpublic RequestDetails getLastSuccessfulRequestDetails()
RecordsPublishergetLastSuccessfulRequestDetails in interface RecordsPublisherpublic void subscribe(org.reactivestreams.Subscriber<? super RecordsRetrieved> s)
subscribe in interface org.reactivestreams.Publisher<RecordsRetrieved>public void restartFrom(RecordsRetrieved recordsRetrieved)
RecordsPublisherrestartFrom in interface RecordsPublisherrecordsRetrieved - the processRecordsInput to restart fromCopyright © 2024. All rights reserved.