MCPcopy
hub / github.com/amqp-node/amqplib / Channel

Interface Channel

callback_api.d.ts:34–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34export interface Channel extends events.EventEmitter {
35 readonly connection: Connection;
36
37 on(event: 'close', listener: () => void): this;
38 on(event: 'error', listener: (err: Error) => void): this;
39 on(event: 'drain', listener: () => void): this;
40 on(event: 'ack', listener: (fields: { deliveryTag: number; multiple: boolean }) => void): this;
41 on(event: 'nack', listener: (fields: { deliveryTag: number; multiple: boolean; requeue: boolean }) => void): this;
42 on(event: 'cancel', listener: (fields: { consumerTag: string }) => void): this;
43 on(event: 'delivery', listener: (message: ConsumeMessage) => void): this;
44 on(event: 'return', listener: (message: Message) => void): this;
45 on(event: 'handler-error', listener: (err: Error, eventName: string) => void): this;
46 on(event: string, listener: (...args: any[]) => void): this;
47
48 close(callback?: (err: Error) => void): void;
49
50 assertQueue(queue?: string, options?: Options.AssertQueue, callback?: (err: Error, ok: Replies.AssertQueue) => void): void;
51 checkQueue(queue: string, callback?: (err: Error, ok: Replies.AssertQueue) => void): void;
52
53 deleteQueue(queue: string, options?: Options.DeleteQueue, callback?: (err: Error, ok: Replies.DeleteQueue) => void): void;
54 purgeQueue(queue: string, callback?: (err: Error, ok: Replies.PurgeQueue) => void): void;
55
56 bindQueue(
57 queue: string,
58 source: string,
59 pattern: string,
60 args?: any,
61 callback?: (err: Error, ok: Replies.Empty) => void,
62 ): void;
63 unbindQueue(
64 queue: string,
65 source: string,
66 pattern: string,
67 args?: any,
68 callback?: (err: Error, ok: Replies.Empty) => void,
69 ): void;
70
71 assertExchange(
72 exchange: string,
73 type: 'direct' | 'topic' | 'headers' | 'fanout' | 'match' | string,
74 options?: Options.AssertExchange,
75 callback?: (err: Error, ok: Replies.AssertExchange) => void,
76 ): void;
77 checkExchange(exchange: string, callback?: (err: Error, ok: Replies.Empty) => void): void;
78
79 deleteExchange(exchange: string, options?: Options.DeleteExchange, callback?: (err: Error, ok: Replies.Empty) => void): void;
80
81 bindExchange(
82 destination: string,
83 source: string,
84 pattern: string,
85 args?: any,
86 callback?: (err: Error, ok: Replies.Empty) => void,
87 ): void;
88 unbindExchange(
89 destination: string,
90 source: string,
91 pattern: string,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…