Interface CounterEventGenerator
-
- All Known Implementing Classes:
AbstractStrongCounter,BoundedStrongCounter,UnboundedStrongCounter,WeakCounterImpl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CounterEventGenerator
A interface to generateCounterEventfrom the currentCounterValue.- Since:
- 9.2
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.infinispan.counter.api.CounterEventgenerate(CounterKey key, CounterValue value)It generates theCounterEvent.
-
-
-
Method Detail
-
generate
org.infinispan.counter.api.CounterEvent generate(CounterKey key, CounterValue value)
It generates theCounterEvent.The
valueis the new value ofCounterEvent.- Parameters:
key- The counter's key.value- The counter's most recentCounterValue.- Returns:
- The
CounterEventwith the updated value.
-
-