Class SetCompletedTransactionFunction

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

public class SetCompletedTransactionFunction extends TxFunction
It marks the transaction as completed in TxState by setting its status to Status.COMMITTED or Status.ROLLED_BACK.

It doesn't check the TxState current status since it should be only invoked when the transaction completes. And it returns Status.NO_TRANSACTION if the TxState doesn't exist.

Since:
9.4
Author:
Pedro Ruivo