public class RecordingEventsPoller extends Object implements FragmentHandler
| 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?
|
void |
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 void onFragment(DirectBuffer buffer, int offset, int length, Header header)
FragmentHandler
Within this callback reentrant calls to the Aeron client are not permitted and
will result in undefined behaviour.
onFragment in interface FragmentHandlerbuffer - containing the data.offset - at which the data begins.length - of the data in bytes.header - representing the meta data for the data.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.