public class CounterSupport extends Object
CounterSupport class provides support to fire
CounterEvent to registered listeners.| Modifier and Type | Field and Description |
|---|---|
protected static CounterSupport |
instance |
| Modifier | Constructor and Description |
|---|---|
protected |
CounterSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCounterListener(CounterListener listener)
Adds a
CounterListener. |
void |
fireIncrementCounter(CounterEvent event)
Inform all registered listeners that the supplied counter needs to be
incremented.
|
static CounterSupport |
getInstance()
Gets the counter support singleton.
|
void |
removeCounterListener(CounterListener listener)
Removes a previously added
CounterListener. |
protected static CounterSupport instance
public static CounterSupport getInstance()
CounterSupport instance.public void addCounterListener(CounterListener listener)
CounterListener.listener - a CounterListener instance that needs to be informed when
a counter needs to be incremented.public void removeCounterListener(CounterListener listener)
CounterListener.listener - a CounterListener instance.public void fireIncrementCounter(CounterEvent event)
event - a CounterEvent containing information about the counter to
be incremented.Copyright © 2016 SNMP4J.org. All Rights Reserved.