Class CounterEventImpl
- java.lang.Object
-
- org.infinispan.counter.impl.listener.CounterEventImpl
-
- All Implemented Interfaces:
CounterEvent
public class CounterEventImpl extends Object implements CounterEvent
TheCounterEventimplementation.- Since:
- 9.0
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CounterEventcreate(long oldValue, long newValue)static CounterEventcreate(CounterValue oldValue, CounterValue newValue)booleanequals(Object o)CounterStategetNewState()longgetNewValue()CounterStategetOldState()longgetOldValue()inthashCode()StringtoString()
-
-
-
Method Detail
-
create
public static CounterEvent create(long oldValue, long newValue)
-
create
public static CounterEvent create(CounterValue oldValue, CounterValue newValue)
-
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.
-
-