UNPKG

562 BTypeScriptView Raw
1import { KafkaMessage } from '../external/kafka.interface';
2import { BaseRpcContext } from './base-rpc.context';
3declare type KafkaContextArgs = [KafkaMessage, number, string];
4export declare class KafkaContext extends BaseRpcContext<KafkaContextArgs> {
5 constructor(args: KafkaContextArgs);
6 /**
7 * Returns the reference to the original message.
8 */
9 getMessage(): KafkaMessage;
10 /**
11 * Returns the partition.
12 */
13 getPartition(): number;
14 /**
15 * Returns the name of the topic.
16 */
17 getTopic(): string;
18}
19export {};