QuestDB JavaScript Client - v5.0.0
    Preparing search index...

    Interface QwpEgressReconnectOptions

    Egress failover policy: the reconnect option of an egress session. Unlike ingress, each failover episode is bounded, so a caller waiting for a query result is not left waiting through a long outage.

    interface QwpEgressReconnectOptions {
        failoverBackoffInitialMs?: number;
        failoverBackoffMaxMs?: number;
        failoverMaxAttempts?: number;
        failoverMaxDurationMs?: number;
        onEvent?: (event: QwpReconnectEvent) => void;
    }
    Index

    Properties

    failoverBackoffInitialMs?: number

    Full-jitter ceiling before the first failed connection sweep is retried. Must not exceed 2_147_483_647ms. Defaults to 50ms.

    failoverBackoffMaxMs?: number

    Full-jitter exponential-backoff ceiling. Must not exceed 2_147_483_647ms. Defaults to 1 second.

    failoverMaxAttempts?: number

    Maximum connection sweeps per failover episode; zero is unlimited. Defaults to 8.

    failoverMaxDurationMs?: number

    Deadline for one failover episode; zero disables it. Defaults to 30 seconds.

    onEvent?: (event: QwpReconnectEvent) => void