Package org.infinispan.api.async
Interface AsyncWeakCounter
public interface AsyncWeakCounter
- Since:
- 14.0
-
Method Summary
Modifier and TypeMethodDescriptionadd
(long delta) Adds the given value to the new value.Retrieves the counter's configuration.Return the container of this counterdefault CompletionStage
<Void> Decrements the counter.default CompletionStage
<Void> Increments the counter.name()
value()
Retrieves this counter's value.
-
Method Details
-
name
String name()- Returns:
- The counter name.
-
configuration
CompletionStage<CounterConfiguration> configuration()Retrieves the counter's configuration.- Returns:
- this counter's configuration.
-
container
AsyncContainer container()Return the container of this counter- Returns:
-
value
CompletionStage<Long> value()Retrieves this counter's value.- Returns:
-
increment
Increments the counter. -
decrement
Decrements the counter. -
add
Adds the given value to the new value.- Parameters:
delta
- the value to add.
-