Class SetDecisionFunction
- java.lang.Object
-
- org.infinispan.server.hotrod.tx.table.functions.TxFunction
-
- org.infinispan.server.hotrod.tx.table.functions.SetDecisionFunction
-
- All Implemented Interfaces:
Function<org.infinispan.functional.EntryView.ReadWriteEntryView<CacheXid,TxState>,Byte>,org.infinispan.commands.functional.functions.InjectableComponent
public class SetDecisionFunction extends TxFunction
It sets the transaction decision inTxState.The decision can be
Status.MARK_ROLLBACKorStatus.MARK_COMMITand theTxStatestatus must be valid. If not, it returns the currentTxStatestatus.If the
TxStatedoesn't exists, it returnsStatus.NO_TRANSACTION.- Since:
- 9.4
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.commons.marshall.AdvancedExternalizer<SetDecisionFunction>EXTERNALIZER-
Fields inherited from class org.infinispan.server.hotrod.tx.table.functions.TxFunction
timeService
-
-
Constructor Summary
Constructors Constructor Description SetDecisionFunction(boolean commit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Byteapply(org.infinispan.functional.EntryView.ReadWriteEntryView<CacheXid,TxState> view)-
Methods inherited from class org.infinispan.server.hotrod.tx.table.functions.TxFunction
inject
-
-
-
-
Field Detail
-
EXTERNALIZER
public static final org.infinispan.commons.marshall.AdvancedExternalizer<SetDecisionFunction> EXTERNALIZER
-
-