Class CreateAndAddFunction<K extends CounterKey>

java.lang.Object
org.infinispan.counter.impl.function.CreateAndAddFunction<K>
All Implemented Interfaces:
Function<org.infinispan.functional.EntryView.ReadWriteEntryView<K,CounterValue>,CounterValue>

public class CreateAndAddFunction<K extends CounterKey> extends Object
The adding function to update the CounterValue.

If the CounterValue doesn't exist, it is created. This is a difference between AddFunction and this class.

Since:
9.2
Author:
Pedro Ruivo