Class ConditionalMarkAsRollbackFunction

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

public class ConditionalMarkAsRollbackFunction extends TxFunction
It updates the TxState's status to Status.MARK_ROLLBACK if the current status is the expected.

It returns Status.ERROR if it fails to update the status and Status.NO_TRANSACTION if the TxState isn't found.

Since:
9.4
Author:
Pedro Ruivo