Interface ICollectorOptions<EventCtx, Collected>

Interface representing the options for the collector.

interface ICollectorOptions<EventCtx, Collected> {
    dispose?: boolean;
    filter?: (
        data: Collected,
        collected: ReadonlyCollection<EventCtx, Collected>,
    ) => PossiblyAsync<boolean>;
    idle?: number;
    max?: number;
    maxProcessed?: number;
    time?: number;
}

Type Parameters

  • EventCtx
  • Collected

Properties

dispose?: boolean
filter?: (
    data: Collected,
    collected: ReadonlyCollection<EventCtx, Collected>,
) => PossiblyAsync<boolean>
idle?: number
max?: number
maxProcessed?: number
time?: number