Class RecoveryTransactions

java.lang.Object
org.gridgain.internal.recovery.RecoveryTransactions

public class RecoveryTransactions extends Object
A wrapper around transactions with some useful methods.
  • Constructor Details

    • RecoveryTransactions

      public RecoveryTransactions(org.apache.ignite.internal.tx.TxManager txManager)
  • Method Details

    • runInReadOnlyTransaction

      public <T> CompletableFuture<T> runInReadOnlyTransaction(org.apache.ignite.internal.hlc.HybridTimestamp readTimestamp, Function<org.apache.ignite.internal.tx.InternalTransaction,CompletableFuture<T>> action)
      Runs the given action in a read-only transaction started with the given read timestamp.
      Throws:
      TooOldTransactionException - if the read timestamp is lower than the current LWM.