public final class RecordingDescriptorPoller extends Object
| Constructor and Description |
|---|
RecordingDescriptorPoller(Subscription subscription,
ErrorHandler errorHandler,
long controlSessionId,
int fragmentLimit)
Create a poller for a given subscription to an archive for control response messages.
|
RecordingDescriptorPoller(Subscription subscription,
ErrorHandler errorHandler,
RecordingSignalConsumer recordingSignalConsumer,
long controlSessionId,
int fragmentLimit)
Create a poller for a given subscription to an archive for control response messages.
|
| Modifier and Type | Method and Description |
|---|---|
long |
controlSessionId()
Control session id for filtering responses.
|
boolean |
isDispatchComplete()
Is the dispatch of descriptors complete?
|
int |
poll()
Poll for recording events.
|
int |
remainingRecordCount()
Get the number of remaining records are expected.
|
void |
reset(long correlationId,
int recordCount,
RecordingDescriptorConsumer consumer)
Reset the poller to dispatch the descriptors returned from a query.
|
Subscription |
subscription()
Get the
Subscription used for polling responses. |
String |
toString() |
public RecordingDescriptorPoller(Subscription subscription, ErrorHandler errorHandler, long controlSessionId, int fragmentLimit)
subscription - to poll for new events.errorHandler - to call for asynchronous errors.controlSessionId - to filter the responses.fragmentLimit - to apply for each polling operation.public RecordingDescriptorPoller(Subscription subscription, ErrorHandler errorHandler, RecordingSignalConsumer recordingSignalConsumer, long controlSessionId, int fragmentLimit)
subscription - to poll for new events.errorHandler - to call for asynchronous errors.recordingSignalConsumer - for consuming interleaved recording signals on the control session.controlSessionId - to filter the responses.fragmentLimit - to apply for each polling operation.public Subscription subscription()
Subscription used for polling responses.Subscription used for polling responses.public int poll()
public long controlSessionId()
public boolean isDispatchComplete()
public int remainingRecordCount()
public void reset(long correlationId,
int recordCount,
RecordingDescriptorConsumer consumer)
correlationId - for the response.recordCount - of descriptors to expect.consumer - to which the recording descriptors are to be dispatched.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.