Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class internal.transactionExecutor.TransactionExecutor
import { internal } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/index.ts";
const { TransactionExecutor } = internal.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,
reject: Reject,
)
_handleTransactionWorkSuccess<T>(
result: T,
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>