Package org.gridgain.internal.recovery
Class RecoveryTransactions
java.lang.Object
org.gridgain.internal.recovery.RecoveryTransactions
A wrapper around transactions with some useful methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<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.
-
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.
-