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
It marks the transaction as completed in
TxState by setting its status to Status.COMMITTED or Status.ROLLED_BACK.
It doesn't check the TxState current status since it should be only invoked when the transaction completes.
And it returns Status.NO_TRANSACTION if the TxState doesn't exist.
- Since:
- 9.4
- Author:
- Pedro Ruivo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AdvancedExternalizer<SetCompletedTransactionFunction> Fields inherited from class org.infinispan.server.hotrod.tx.table.functions.TxFunction
timeService -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.infinispan.server.hotrod.tx.table.functions.TxFunction
inject
-
Field Details
-
EXTERNALIZER
-
-
Constructor Details
-
SetCompletedTransactionFunction
public SetCompletedTransactionFunction(boolean committed)
-
-
Method Details
-
apply
-
toString
-