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

org.infinispan.api.mutiny.MutinyWeakCounter Maven / Gradle / Ivy

The newest version!
package org.infinispan.api.mutiny;

import io.smallrye.mutiny.Uni;

/**
 * @since 14.0
 **/
public interface MutinyWeakCounter {
   /**
    * Returns the name of this counter
    *
    * @return the name of this counter
    */
   String name();

   /**
    * Return the container of this counter
    *
    * @return
    */
   MutinyContainer container();

   /**
    * Returns the current value of this counter
    *
    * @return
    */
   Uni value();

   default Uni increment() {
      return add(1);
   }

   default Uni decrement() {
      return add(-1);
   }

   Uni add(long delta);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy