public final class RecordingEventsPoller extends Object implements ControlledFragmentHandler
ControlledFragmentHandler.Action| Constructor and Description |
|---|
RecordingEventsPoller(Subscription subscription)
Create a poller for a given subscription to an archive for recording events.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPollComplete()
Has the last polling action received a complete message?
|
ControlledFragmentHandler.Action |
onFragment(DirectBuffer buffer,
int offset,
int length,
Header header)
Callback for handling fragments of data being read from a log.
|
int |
poll()
Poll for recording events.
|
long |
recordingId()
Get the recording id of the last received event.
|
long |
recordingPosition()
Get the current recording position.
|
long |
recordingStartPosition()
Get the position the recording started at.
|
long |
recordingStopPosition()
Get the position the recording stopped at.
|
int |
templateId()
Get the template id of the last received message.
|
public RecordingEventsPoller(Subscription subscription)
subscription - to poll for new events.public int poll()
public boolean isPollComplete()
public int templateId()
public long recordingId()
public long recordingStartPosition()
public long recordingPosition()
public long recordingStopPosition()
public ControlledFragmentHandler.Action onFragment(DirectBuffer buffer, int offset, int length, Header header)
Within this callback reentrant calls to the Aeron client are not permitted and
will result in undefined behaviour.
onFragment in interface ControlledFragmentHandlerbuffer - containing the data.offset - at which the data begins.length - of the data in bytes.header - representing the metadata for the data.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.