CounterSnapshotListener, java.lang.AutoCloseablepublic final class CounterSnapshotPublisher extends java.lang.Object implements CounterSnapshotListener, java.lang.AutoCloseable
CounterSnapshotListener that publishes to an Aeron Publication.| Modifier and Type | Class | Description |
|---|---|---|
static class |
CounterSnapshotPublisher.Context |
Configuration context.
|
| Constructor | Description |
|---|---|
CounterSnapshotPublisher() |
Construct a new publisher using runtime configuration.
|
CounterSnapshotPublisher(CounterSnapshotPublisher.Context context) |
Construct a new publisher from the supplied context.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
onSnapshot(java.lang.String label,
long timestamp,
java.util.List<PublisherCounterSet> publisherCounters,
java.util.List<SubscriberCounterSet> subscriberCounters,
SystemCounters systemCounters) |
Called when a complete snapshot of the counters has been built.
|
public CounterSnapshotPublisher()
public CounterSnapshotPublisher(CounterSnapshotPublisher.Context context)
context - configuration contextpublic void onSnapshot(java.lang.String label,
long timestamp,
java.util.List<PublisherCounterSet> publisherCounters,
java.util.List<SubscriberCounterSet> subscriberCounters,
SystemCounters systemCounters)
onSnapshot in interface CounterSnapshotListenerlabel - label of the MediaDrivertimestamp - timestamp of the snapshotpublisherCounters - counters describing publisher statesubscriberCounters - counters describing subscriber statesystemCounters - counters describing system statepublic void close()
close in interface java.lang.AutoCloseable