Class CounterEventImpl
- java.lang.Object
-
- org.infinispan.counter.impl.listener.CounterEventImpl
-
- All Implemented Interfaces:
org.infinispan.counter.api.CounterEvent
public class CounterEventImpl extends Object implements org.infinispan.counter.api.CounterEvent
TheCounterEventimplementation.- Since:
- 9.0
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.infinispan.counter.api.CounterEventcreate(long oldValue, long newValue)static org.infinispan.counter.api.CounterEventcreate(CounterValue oldValue, CounterValue newValue)booleanequals(Object o)org.infinispan.counter.api.CounterStategetNewState()longgetNewValue()org.infinispan.counter.api.CounterStategetOldState()longgetOldValue()inthashCode()StringtoString()
-
-
-
Method Detail
-
create
public static org.infinispan.counter.api.CounterEvent create(long oldValue, long newValue)
-
create
public static org.infinispan.counter.api.CounterEvent create(CounterValue oldValue, CounterValue newValue)
-
getOldValue
public long getOldValue()
- Specified by:
getOldValuein interfaceorg.infinispan.counter.api.CounterEvent
-
getOldState
public org.infinispan.counter.api.CounterState getOldState()
- Specified by:
getOldStatein interfaceorg.infinispan.counter.api.CounterEvent
-
getNewValue
public long getNewValue()
- Specified by:
getNewValuein interfaceorg.infinispan.counter.api.CounterEvent
-
getNewState
public org.infinispan.counter.api.CounterState getNewState()
- Specified by:
getNewStatein interfaceorg.infinispan.counter.api.CounterEvent
-
-