Class HotRodCounterEvent
- java.lang.Object
-
- org.infinispan.client.hotrod.counter.impl.HotRodCounterEvent
-
- All Implemented Interfaces:
CounterEvent
public class HotRodCounterEvent extends Object implements CounterEvent
ACounterEventimplementation for the Hot Rod client.- Since:
- 9.2
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description HotRodCounterEvent(byte[] listenerId, String counterName, long oldValue, CounterState oldState, long newValue, CounterState newState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCounterName()byte[]getListenerId()CounterStategetNewState()longgetNewValue()CounterStategetOldState()longgetOldValue()StringtoString()
-
-
-
Constructor Detail
-
HotRodCounterEvent
public HotRodCounterEvent(byte[] listenerId, String counterName, long oldValue, CounterState oldState, long newValue, CounterState newState)
-
-
Method Detail
-
getListenerId
public byte[] getListenerId()
-
getCounterName
public String getCounterName()
-
getOldValue
public long getOldValue()
- Specified by:
getOldValuein interfaceCounterEvent- Returns:
- the previous value.
-
getOldState
public CounterState getOldState()
- Specified by:
getOldStatein interfaceCounterEvent- Returns:
- the previous state.
-
getNewValue
public long getNewValue()
- Specified by:
getNewValuein interfaceCounterEvent- Returns:
- the counter value.
-
getNewState
public CounterState getNewState()
- Specified by:
getNewStatein interfaceCounterEvent- Returns:
- the counter state.
-
-