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.
A interface to generate
CounterEvent from the current CounterValue.- Since:
- 9.2
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.counter.api.CounterEventgenerate(CounterKey key, CounterValue value) It generates theCounterEvent.
-
Method Details
-
generate
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.
-