zeebe-node
Version:
The Node.js client library for the Zeebe Workflow Automation Engine.
19 lines (18 loc) • 701 B
TypeScript
import { ZBBatchWorker } from '../zb/ZBBatchWorker';
import { BatchedJob, ICustomHeaders, IInputVariables, IOutputVariables, ZBBatchWorkerTaskHandler } from './interfaces-1.0';
export declare class JobBatcher {
private batchedJobs;
private handler;
private timeout;
private batchSize;
private worker;
private batchExecutionTimerHandle;
constructor({ handler, timeout, batchSize, worker, }: {
handler: ZBBatchWorkerTaskHandler<any, any, any>;
timeout: number;
batchSize: number;
worker: ZBBatchWorker<any, any, any>;
});
batch(batch: Array<BatchedJob<IInputVariables, ICustomHeaders, IOutputVariables>>): void;
private execute;
}