Class SetDecisionFunction
- java.lang.Object
-
- org.infinispan.server.hotrod.tx.table.functions.TxFunction
-
- org.infinispan.server.hotrod.tx.table.functions.SetDecisionFunction
-
- All Implemented Interfaces:
java.util.function.Function<EntryView.ReadWriteEntryView<CacheXid,TxState>,java.lang.Byte>
,org.infinispan.commands.functional.functions.InjectableComponent
public class SetDecisionFunction extends TxFunction
It sets the transaction decision inTxState
.The decision can be
Status.MARK_ROLLBACK
orStatus.MARK_COMMIT
and theTxState
status must be valid. If not, it returns the currentTxState
status.If the
TxState
doesn't exists, it returnsStatus.NO_TRANSACTION
.- Since:
- 9.4
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description static 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 java.lang.Byte
apply(EntryView.ReadWriteEntryView<CacheXid,TxState> view)
-
Methods inherited from class org.infinispan.server.hotrod.tx.table.functions.TxFunction
inject
-
-
-
-
Field Detail
-
EXTERNALIZER
public static final AdvancedExternalizer<SetDecisionFunction> EXTERNALIZER
-
-
Method Detail
-
apply
public java.lang.Byte apply(EntryView.ReadWriteEntryView<CacheXid,TxState> view)
-
-