Class 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 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:
        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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object