Class SystemCounters

java.lang.Object
io.aeron.driver.status.SystemCounters
All Implemented Interfaces:
AutoCloseable

public final class SystemCounters extends Object implements AutoCloseable
Aggregate entry point for managing counters of system status.
  • Constructor Details

    • SystemCounters

      public SystemCounters(CountersManager countersManager)
      Construct the counters for this system.
      Parameters:
      countersManager - which will manage the underlying storage.
  • Method Details

    • get

      public AtomicCounter get(SystemCounterDescriptor descriptor)
      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:
      close in interface AutoCloseable
    • toString

      public String toString()
      Overrides:
      toString in class Object