kafka-ts
Version:
**KafkaTS** is a Apache Kafka client library for Node.js. It provides both a low-level API for communicating directly with the Apache Kafka cluster and high-level APIs for publishing and subscribing to Kafka topics.
19 lines (18 loc) • 546 B
TypeScript
import { FetchResponse } from '../api/fetch';
import { Assignment } from '../api/sync-group';
type FetchManagerOptions = {
fetch: (nodeId: number, assignment: Assignment) => Promise<FetchResponse>;
process: (response: FetchResponse) => Promise<void>;
nodeAssignments: {
nodeId: number;
assignment: Assignment;
}[];
};
export declare class FetchManager {
private options;
private fetchers;
constructor(options: FetchManagerOptions);
start(): Promise<void>;
stop(): Promise<void[]>;
}
export {};