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 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 org.infinispan.commons.marshall.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 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 org.infinispan.commons.marshall.AdvancedExternalizer<SetCompletedTransactionFunction> EXTERNALIZER
-
-
Method Detail
-
apply
public Byte apply(EntryView.ReadWriteEntryView<CacheXid,TxState> view)
-
-