CounterManager.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private boolean | |
| private final FailSafeTimer |
| Access | Constructor and Description |
|---|---|
| public | CounterManagerImpl(FailSafeTimer timer)
Constructor that accepts a timer that will be used for scheduling sampled counter if any is created |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | addCounter(Counter counter)
Implements net. |
| public synchronized Counter | createCounter(CounterConfig config)
Implements net. |
| public synchronized void | shutdown()
Implements net. |
| public void | shutdownCounter(Counter counter)
Implements net. |
| counters | back to summary |
|---|---|
| private final List<Counter> counters | |
| shutdown | back to summary |
|---|---|
| private boolean shutdown | |
| timer | back to summary |
|---|---|
| private final FailSafeTimer timer | |
| CounterManagerImpl | back to summary |
|---|---|
| public CounterManagerImpl(FailSafeTimer timer) Constructor that accepts a timer that will be used for scheduling sampled counter if any is created | |
| addCounter | back to summary |
|---|---|
| public synchronized void addCounter(Counter counter) Implements net. Doc from net. Adds a counter. | |
| createCounter | back to summary |
|---|---|
| public synchronized Counter createCounter(CounterConfig config) Implements net. Doc from net. Creates a Counter based on the passed config
| |
| shutdown | back to summary |
|---|---|
| public synchronized void shutdown() Implements net. Doc from net. Shuts down this counter manager | |
| shutdownCounter | back to summary |
|---|---|
| public void shutdownCounter(Counter counter) Implements net. Doc from net. Shuts down the counter | |