public final class RecordingSignalAdapter extends Object
Important: set the underlying RecordingSignalConsumer instance on the AeronArchive using the
AeronArchive.Context.recordingSignalConsumer(RecordingSignalConsumer) method to avoid missing signals.
RecordingSignal| Constructor and Description |
|---|
RecordingSignalAdapter(long controlSessionId,
ControlEventListener controlEventListener,
RecordingSignalConsumer recordingSignalConsumer,
Subscription subscription,
int fragmentLimit)
Create an adapter for a given subscription to an archive for recording events.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDone()
Indicate that poll was successful and a signal or control response was received.
|
int |
poll()
Poll for recording transitions and dispatch them to the
RecordingSignalConsumer for this instance,
plus check for async responses for this control session which may have an exception and dispatch to the
ControlResponseListener. |
public RecordingSignalAdapter(long controlSessionId,
ControlEventListener controlEventListener,
RecordingSignalConsumer recordingSignalConsumer,
Subscription subscription,
int fragmentLimit)
controlSessionId - to listen for associated asynchronous control events, such as errors.controlEventListener - listener for control events which may indicate an error on the session.recordingSignalConsumer - consumer of recording transition events.subscription - to poll for new events.fragmentLimit - to apply for each polling operation.public int poll()
RecordingSignalConsumer for this instance,
plus check for async responses for this control session which may have an exception and dispatch to the
ControlResponseListener.public boolean isDone()
Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.