Class HotRodCounterEvent
java.lang.Object
org.infinispan.client.hotrod.counter.impl.HotRodCounterEvent
- All Implemented Interfaces:
CounterEvent
A
CounterEvent
implementation for the Hot Rod client.- Since:
- 9.2
- Author:
- Pedro Ruivo
-
Constructor Summary
ConstructorDescriptionHotRodCounterEvent
(byte[] listenerId, String counterName, long oldValue, CounterState oldState, long newValue, CounterState newState) -
Method Summary
-
Constructor Details
-
HotRodCounterEvent
public HotRodCounterEvent(byte[] listenerId, String counterName, long oldValue, CounterState oldState, long newValue, CounterState newState)
-
-
Method Details
-
getListenerId
public byte[] getListenerId() -
getCounterName
-
getOldValue
public long getOldValue()- Specified by:
getOldValue
in interfaceCounterEvent
- Returns:
- the previous value.
-
getOldState
- Specified by:
getOldState
in interfaceCounterEvent
- Returns:
- the previous state.
-
getNewValue
public long getNewValue()- Specified by:
getNewValue
in interfaceCounterEvent
- Returns:
- the counter value.
-
getNewState
- Specified by:
getNewState
in interfaceCounterEvent
- Returns:
- the counter state.
-
toString
-