Class SetCompletedTransactionFunction
- java.lang.Object
-
- org.infinispan.server.hotrod.tx.table.functions.TxFunction
-
- org.infinispan.server.hotrod.tx.table.functions.SetCompletedTransactionFunction
-
- All Implemented Interfaces:
java.util.function.Function<EntryView.ReadWriteEntryView<CacheXid,TxState>,java.lang.Byte>
,org.infinispan.commands.functional.functions.InjectableComponent
public class SetCompletedTransactionFunction extends TxFunction
It marks the transaction as completed inTxState
by setting its status toStatus.COMMITTED
orStatus.ROLLED_BACK
.It doesn't check the
TxState
current status since it should be only invoked when the transaction completes. And it returnsStatus.NO_TRANSACTION
if theTxState
doesn't exist.- Since:
- 9.4
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description static AdvancedExternalizer<SetCompletedTransactionFunction>
EXTERNALIZER
-
Fields inherited from class org.infinispan.server.hotrod.tx.table.functions.TxFunction
timeService
-
-
Constructor Summary
Constructors Constructor Description SetCompletedTransactionFunction(boolean committed)
-
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<SetCompletedTransactionFunction> EXTERNALIZER
-
-
Method Detail
-
apply
public java.lang.Byte apply(EntryView.ReadWriteEntryView<CacheXid,TxState> view)
-
-