public class CounterEvent extends EventObject
CounterEvent
is an event object that indicates that a specific
counter needs to be incremented.
At the same time a CounterEvent
can be used by the event originator to retrieve the actual value of the
specified counter. Listeners that maintain the specified counter value,
must set the new value when receiving the CounterEvent
by using
the setCurrentValue(Variable currentValue)
method.
source
Constructor and Description |
---|
CounterEvent(Object source,
OID oid)
Creates a
CounterEvent for the specified counter. |
Modifier and Type | Method and Description |
---|---|
Variable |
getCurrentValue()
Gets the current value of the counter, as set by the maintainer of the
counter (one of the event listeners).
|
OID |
getOid()
Gets the instance object identifier of the counter.
|
void |
setCurrentValue(Variable currentValue)
Sets the current value of the counter.
|
getSource, toString
Copyright © 2023 SNMP4J.org. All rights reserved.