io.aeron.logbuffer.FragmentHandler, java.lang.AutoCloseablepublic final class CounterSnapshotSubscriber
extends java.lang.Object
implements io.aeron.logbuffer.FragmentHandler, java.lang.AutoCloseable
CounterSnapshotPublisher.| Modifier and Type | Class | Description |
|---|---|---|
static class |
CounterSnapshotSubscriber.Context |
Configuration context.
|
| Constructor | Description |
|---|---|
CounterSnapshotSubscriber() |
Creates a new subscriber using runtime configuration.
|
CounterSnapshotSubscriber(CounterSnapshotSubscriber.Context context) |
Creates a new subscriber from the supplied context.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
int |
doWork() |
Poll the Aeron
Subscription. |
void |
onFragment(org.agrona.DirectBuffer buffer,
int offset,
int length,
io.aeron.logbuffer.Header header) |
public CounterSnapshotSubscriber()
public CounterSnapshotSubscriber(CounterSnapshotSubscriber.Context context)
context - configuration contextpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void onFragment(org.agrona.DirectBuffer buffer,
int offset,
int length,
io.aeron.logbuffer.Header header)
onFragment in interface io.aeron.logbuffer.FragmentHandlerpublic int doWork()
Subscription.