public final class RecordingEventsAdapter extends Object implements FragmentHandler
| Constructor and Description |
|---|
RecordingEventsAdapter(RecordingEventsListener listener,
Subscription subscription,
int fragmentLimit)
Create an adapter for a given subscription to an archive for recording events.
|
| Modifier and Type | Method and Description |
|---|---|
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 and dispatch them to the
RecordingEventsListener for this instance. |
public RecordingEventsAdapter(RecordingEventsListener listener, Subscription subscription, int fragmentLimit)
listener - to which events are dispatched.subscription - to poll for new events.fragmentLimit - to apply for each polling operation.public int poll()
RecordingEventsListener for this instance.public void 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 FragmentHandlerbuffer - 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.