Class PreparingDecisionFunction

java.lang.Object
org.infinispan.server.hotrod.tx.table.functions.TxFunction
org.infinispan.server.hotrod.tx.table.functions.PreparingDecisionFunction
All Implemented Interfaces:
Function<EntryView.ReadWriteEntryView<CacheXid,TxState>,Byte>, org.infinispan.commands.functional.functions.InjectableComponent

public class PreparingDecisionFunction extends TxFunction
It changes the TxState status to Status.PREPARING and stores the transaction modifications.

It returns Status.NO_TRANSACTION if the TxState isn't found and the TxState.getStatus() if the current status isn't Status.ACTIVE or Status.PREPARING.

Since:
9.4
Author:
Pedro Ruivo