All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.counter.api.CounterEvent Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.counter.api;

/**
 * The event used by {@link CounterListener}.
 *
 * @author Pedro Ruivo
 * @since 9.0
 */
public interface CounterEvent {

   /**
    * @return the previous value.
    */
   long getOldValue();

   /**
    * @return the previous state.
    */
   CounterState getOldState();

   /**
    * @return the counter value.
    */
   long getNewValue();

   /**
    * @return the counter state.
    */
   CounterState getNewState();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy