Class ConditionalMarkAsRollbackFunction
- java.lang.Object
-
- org.infinispan.server.hotrod.tx.table.functions.TxFunction
-
- org.infinispan.server.hotrod.tx.table.functions.ConditionalMarkAsRollbackFunction
-
- All Implemented Interfaces:
Function<org.infinispan.functional.EntryView.ReadWriteEntryView<CacheXid,TxState>,Byte>,org.infinispan.commands.functional.functions.InjectableComponent
public class ConditionalMarkAsRollbackFunction extends TxFunction
It updates theTxState's status toStatus.MARK_ROLLBACKif the current status is the expected.It returns
Status.ERRORif it fails to update the status andStatus.NO_TRANSACTIONif theTxStateisn't found.- Since:
- 9.4
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.commons.marshall.AdvancedExternalizer<ConditionalMarkAsRollbackFunction>EXTERNALIZER-
Fields inherited from class org.infinispan.server.hotrod.tx.table.functions.TxFunction
timeService
-
-
Constructor Summary
Constructors Constructor Description ConditionalMarkAsRollbackFunction(Status expected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Byteapply(org.infinispan.functional.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<ConditionalMarkAsRollbackFunction> EXTERNALIZER
-
-
Constructor Detail
-
ConditionalMarkAsRollbackFunction
public ConditionalMarkAsRollbackFunction(Status expected)
-
-