ali-mns-sdk
Version:
The nodejs SDK for aliyun mns service
15 lines (14 loc) • 769 B
TypeScript
import { Account } from './Account';
import { IMQBatch, INotifyRecvBatch } from './Interfaces';
import { MQ } from './MQ';
import { Msg } from './Msg';
export declare class MQBatch extends MQ implements IMQBatch, INotifyRecvBatch {
constructor(name: string, account: Account, region?: string);
sendP(msg: string | Msg[], priority?: number, delaySeconds?: number): any;
recvP(waitSeconds?: number, numOfMessages?: number): Promise<unknown>;
peekP(numOfMessages?: number): any;
deleteP(receiptHandle: string | string[]): any;
notifyRecv(cb: (ex: Error, msg: any) => Promise<boolean>, waitSeconds?: number, numOfMessages?: number): any;
protected decodeB64Messages(data: any): void;
protected _notifyRecv: INotifyRecvBatch;
}