public class BlockingRecordsPublisher extends Object implements RecordsPublisher
| Constructor and Description |
|---|
BlockingRecordsPublisher(int maxRecordsPerCall,
GetRecordsRetrievalStrategy getRecordsRetrievalStrategy) |
| Modifier and Type | Method and Description |
|---|---|
ProcessRecordsInput |
getNextResult() |
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 ProcessRecordsInput> s) |
public 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 void subscribe(org.reactivestreams.Subscriber<? super ProcessRecordsInput> s)
subscribe in interface org.reactivestreams.Publisher<ProcessRecordsInput>Copyright © 2019. All rights reserved.