
org.infinispan.api.mutiny.MutinyWeakCounter Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy