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 inTxStateby setting its status toStatus.COMMITTEDorStatus.ROLLED_BACK.It doesn't check the
TxStatecurrent status since it should be only invoked when the transaction completes. And it returnsStatus.NO_TRANSACTIONif theTxStatedoesn'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.Byteapply(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)
-
-