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 generate CounterEvent from the current CounterValue.
Since:
9.2
Author:
Pedro Ruivo
  • Method Summary

    Modifier and Type
    Method
    Description
    org.infinispan.counter.api.CounterEvent
    It generates the CounterEvent.
  • Method Details

    • generate

      org.infinispan.counter.api.CounterEvent generate(CounterKey key, CounterValue value)
      It generates the CounterEvent.

      The value is the new value of CounterEvent.

      Parameters:
      key - The counter's key.
      value - The counter's most recent CounterValue.
      Returns:
      The CounterEvent with the updated value.