Class CounterEventImpl
java.lang.Object
org.infinispan.counter.impl.listener.CounterEventImpl
- All Implemented Interfaces:
CounterEvent
The
CounterEvent implementation.- Since:
- 9.0
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionstatic CounterEventcreate(long oldValue, long newValue) static CounterEventcreate(CounterValue oldValue, CounterValue newValue) booleanlonglonginthashCode()toString()
-
Method Details
-
create
-
create
-
getOldValue
public long getOldValue()- Specified by:
getOldValuein interfaceCounterEvent- Returns:
- the previous value.
-
getOldState
- Specified by:
getOldStatein interfaceCounterEvent- Returns:
- the previous state.
-
getNewValue
public long getNewValue()- Specified by:
getNewValuein interfaceCounterEvent- Returns:
- the counter value.
-
getNewState
- Specified by:
getNewStatein interfaceCounterEvent- Returns:
- the counter state.
-
toString
-
equals
-
hashCode
public int hashCode()
-