Class SetPreparedFunction
- java.lang.Object
-
- org.infinispan.server.hotrod.tx.table.functions.TxFunction
-
- org.infinispan.server.hotrod.tx.table.functions.SetPreparedFunction
-
- All Implemented Interfaces:
java.util.function.Function<EntryView.ReadWriteEntryView<CacheXid,TxState>,java.lang.Byte>
,org.infinispan.commands.functional.functions.InjectableComponent
public class SetPreparedFunction extends TxFunction
It sets the transaction as successful prepared.The
TxState
status must beStatus.PREPARING
. If not, it returns the current status.If the
TxState
doesn't exist, it returnsStatus.NO_TRANSACTION
.Note that the
Status.PREPARED
doesn't mean the transaction can commit or not. The decision is made by the clientTransactionManager
.- Since:
- 9.4
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description static AdvancedExternalizer<SetPreparedFunction>
EXTERNALIZER
-
Fields inherited from class org.infinispan.server.hotrod.tx.table.functions.TxFunction
timeService
-
-
Constructor Summary
Constructors Constructor Description SetPreparedFunction()
-
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<SetPreparedFunction> EXTERNALIZER
-
-
Method Detail
-
apply
public java.lang.Byte apply(EntryView.ReadWriteEntryView<CacheXid,TxState> view)
-
-