Package io.aeron.driver.status
Class SystemCounters
java.lang.Object
io.aeron.driver.status.SystemCounters
- All Implemented Interfaces:
AutoCloseable
Aggregate entry point for managing counters of system status.
-
Constructor Summary
ConstructorsConstructorDescriptionSystemCounters(CountersManager countersManager) Construct the counters for this system. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close all the counters.get(SystemCounterDescriptor descriptor) Get the counter for a particular descriptor.toString()
-
Constructor Details
-
SystemCounters
Construct the counters for this system.- Parameters:
countersManager- which will manage the underlying storage.
-
-
Method Details
-
get
Get the counter for a particular descriptor.- Parameters:
descriptor- by which the counter should be looked up.- Returns:
- the counter for the given descriptor.
-
close
public void close()Close all the counters.- Specified by:
closein interfaceAutoCloseable
-
toString
-