public final class RecordingSignalPoller extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FRAGMENT_LIMIT
Limit to apply when polling messages.
|
| Constructor and Description |
|---|
RecordingSignalPoller(long controlSessionId,
Subscription subscription)
Create a poller for a given subscription to an archive for control response messages with a default
fragment limit for polling as
FRAGMENT_LIMIT. |
| Modifier and Type | Method and Description |
|---|---|
ControlResponseCode |
code()
Get the response code of the last response.
|
long |
controlSessionId()
Control session id of the last polled message or
Aeron.NULL_VALUE if poll returned nothing. |
long |
correlationId()
Correlation id of the last polled message or
Aeron.NULL_VALUE if poll returned nothing. |
String |
errorMessage()
Get the error message of the last response.
|
boolean |
isPollComplete()
Has the last polling action received a complete message?
|
int |
poll()
Poll for control response events.
|
long |
recordingId()
Get the recording id of the last received message.
|
long |
recordingPosition()
Get the recording position of the last received message.
|
RecordingSignal |
recordingSignal()
Get the recording signal of the last received message.
|
long |
recordingSubscriptionId()
Get the recording subscription id of the last received message.
|
long |
relevantId()
Get the relevant id returned with the response, e.g.
|
Subscription |
subscription()
Get the
Subscription used for polling messages. |
int |
templateId()
Get the template id of the last received message.
|
String |
toString() |
int |
version()
Version response from the server in semantic version form.
|
public static final int FRAGMENT_LIMIT
public RecordingSignalPoller(long controlSessionId,
Subscription subscription)
FRAGMENT_LIMIT.controlSessionId - to listen for associated asynchronous control events, such as errors.subscription - to poll for new events.public Subscription subscription()
Subscription used for polling messages.Subscription used for polling messages.public int poll()
public long controlSessionId()
Aeron.NULL_VALUE if poll returned nothing.Aeron.NULL_VALUE if poll returned nothing.public long correlationId()
Aeron.NULL_VALUE if poll returned nothing.Aeron.NULL_VALUE if poll returned nothing.public long relevantId()
public int templateId()
public long recordingId()
public long recordingSubscriptionId()
public long recordingPosition()
public RecordingSignal recordingSignal()
public int version()
public boolean isPollComplete()
public ControlResponseCode code()
public String errorMessage()
Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.