Class HotRodCounterEvent
- java.lang.Object
-
- org.infinispan.client.hotrod.counter.impl.HotRodCounterEvent
-
- All Implemented Interfaces:
CounterEvent
public class HotRodCounterEvent extends Object implements CounterEvent
ACounterEvent
implementation 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 String
getCounterName()
byte[]
getListenerId()
CounterState
getNewState()
long
getNewValue()
CounterState
getOldState()
long
getOldValue()
String
toString()
-
-
-
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:
getOldValue
in interfaceCounterEvent
- Returns:
- the previous value.
-
getOldState
public CounterState getOldState()
- Specified by:
getOldState
in interfaceCounterEvent
- Returns:
- the previous state.
-
getNewValue
public long getNewValue()
- Specified by:
getNewValue
in interfaceCounterEvent
- Returns:
- the counter value.
-
getNewState
public CounterState getNewState()
- Specified by:
getNewState
in interfaceCounterEvent
- Returns:
- the counter state.
-
-