public class SystemCounters
extends java.lang.Object
implements java.lang.AutoCloseable
Constructor and Description |
---|
SystemCounters(org.agrona.concurrent.status.CountersManager countersManager)
Construct the counters for this system.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close all the counters.
|
org.agrona.concurrent.status.AtomicCounter |
get(SystemCounterDescriptor descriptor)
Get the counter for a particular descriptor.
|
public SystemCounters(org.agrona.concurrent.status.CountersManager countersManager)
countersManager
- which will manage the underlying storage.public org.agrona.concurrent.status.AtomicCounter get(SystemCounterDescriptor descriptor)
descriptor
- by which the counter should be looked up.public void close()
close
in interface java.lang.AutoCloseable
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.