Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class transactionExecutor.TransactionExecutor
import { transactionExecutor } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/internal/index.ts";
const { TransactionExecutor } = transactionExecutor;

Constructors

new
TransactionExecutor(
maxRetryTimeMs?: number | null,
initialRetryDelayMs?: number,
multiplier?: number,
jitterFactor?: number,
)

Properties

private
_inFlightTimeoutIds: Timeout[]
private
_initialRetryDelayMs: number
private
_jitterFactor: number
private
_maxRetryTimeMs: number
private
_multiplier: number

Methods

_computeDelayWithJitter(delayMs: number): number
_executeTransactionInsidePromise<T>(
transactionCreator: TransactionCreator,
transactionWork: TransactionWork<T>,
resolve: Resolve<T>,
reject: Reject,
): void
_handleTransactionWorkFailure(
error: any,
tx: Transaction,
reject: Reject,
)
_handleTransactionWorkSuccess<T>(
result: T,
tx: Transaction,
resolve: Resolve<T>,
reject: Reject,
)
_retryTransactionPromise<T>(
transactionCreator: TransactionCreator,
transactionWork: TransactionWork<T>,
error: Error,
retryStartTime: number,
retryDelayMs: number,
): Promise<T>
_safeExecuteTransactionWork<T>(tx: Transaction, transactionWork: TransactionWork<T>): Promise<T>
execute<T>(transactionCreator: TransactionCreator, transactionWork: TransactionWork<T>): Promise<T>