Class CreateAndCASFunction<K extends CounterKey>

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

public class CreateAndCASFunction<K extends CounterKey> extends Object
The compare-and-swap function to update the CounterValue.

It has the same semantic as CompareAndSwapFunction but it creates the CounterValue if it doesn't exist.

Since:
9.2
Author:
Pedro Ruivo
See Also: