@grow-codes/graylog - v0.1.1
    Preparing search index...

    Class BatchProcessor

    Queues log records and exports them in batches from a background timer (SPEC §4). One export runs at a time; a full batch (count or bytes) starts an export at once.

    Index
    • Like add, but with dropPolicy: "block" waits until the queue has room first. Resolves false when the record was dropped (for example because the processor shut down).

      Parameters

      Returns Promise<boolean>

    • Exports everything queued at the time of the call. Rejects with TimeoutError after timeoutMs.

      Parameters

      • timeoutMs: number = ...

      Returns Promise<void>

    • Drains the queue (bounded by timeoutMs), drops what is left with reason shutdown, then shuts the exporter down. Idempotent; later add calls drop with reason shutdown.

      Parameters

      • timeoutMs: number = ...

      Returns Promise<void>