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, wait
notify
public BlockingRecordsPublisher(int maxRecordsPerCall, GetRecordsRetrievalStrategy getRecordsRetrievalStrategy)
public void start(ExtendedSequenceNumber extendedSequenceNumber, InitialPositionInStreamExtended initialPositionInStreamExtended)
RecordsPublisher
start
in interface RecordsPublisher
extendedSequenceNumber
- the sequence number to start processing frominitialPositionInStreamExtended
- if there is no sequence number the initial position to usepublic ProcessRecordsInput getNextResult()
public void shutdown()
RecordsPublisher
shutdown
in interface RecordsPublisher
public RequestDetails getLastSuccessfulRequestDetails()
RecordsPublisher
getLastSuccessfulRequestDetails
in interface RecordsPublisher
public void subscribe(org.reactivestreams.Subscriber<? super RecordsRetrieved> s)
subscribe
in interface org.reactivestreams.Publisher<RecordsRetrieved>
public void restartFrom(RecordsRetrieved recordsRetrieved)
RecordsPublisher
restartFrom
in interface RecordsPublisher
recordsRetrieved
- the processRecordsInput to restart fromCopyright © 2022. All rights reserved.