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
The CounterEvent implementation.
Since:
9.0
Author:
Pedro Ruivo
  • Method Details

    • 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:
      getOldValue in interface org.infinispan.counter.api.CounterEvent
    • getOldState

      public org.infinispan.counter.api.CounterState getOldState()
      Specified by:
      getOldState in interface org.infinispan.counter.api.CounterEvent
    • getNewValue

      public long getNewValue()
      Specified by:
      getNewValue in interface org.infinispan.counter.api.CounterEvent
    • getNewState

      public org.infinispan.counter.api.CounterState getNewState()
      Specified by:
      getNewState in interface org.infinispan.counter.api.CounterEvent
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object