mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
Update to Queue Options for rmqlib
This commit is contained in:
@@ -16,3 +16,15 @@ export interface AmqpConnectionManagerSocketOptions {
|
||||
findServers?: () => string | string[]
|
||||
connectionOptions?: any
|
||||
}
|
||||
|
||||
export interface AmqplibQueueOptions{
|
||||
exclusive?: boolean
|
||||
durable?: boolean
|
||||
autoDelete?: boolean
|
||||
arugments?: any
|
||||
messageTtl?: number
|
||||
expires?: number
|
||||
deadLetterExchange?: string
|
||||
maxLength?: number
|
||||
maxPriority?: number
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ import { Server } from '../server/server';
|
||||
import { CustomTransportStrategy } from './custom-transport-strategy.interface';
|
||||
import { Deserializer } from './deserializer.interface';
|
||||
import { Serializer } from './serializer.interface';
|
||||
import { AmqpConnectionManagerSocketOptions, RmqUrl } from '../external/rmq-url.interface';
|
||||
import { AmqpConnectionManagerSocketOptions, AmqplibQueueOptions, RmqUrl } from '../external/rmq-url.interface';
|
||||
|
||||
export type MicroserviceOptions =
|
||||
| GrpcOptions
|
||||
@@ -127,7 +127,7 @@ export interface RmqOptions {
|
||||
queue?: string;
|
||||
prefetchCount?: number;
|
||||
isGlobalPrefetchCount?: boolean;
|
||||
queueOptions?: any;
|
||||
queueOptions?: AmqplibQueueOptions;
|
||||
socketOptions?: AmqpConnectionManagerSocketOptions;
|
||||
noAck?: boolean;
|
||||
serializer?: Serializer;
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
OutgoingResponse,
|
||||
} from '../interfaces/packet.interface';
|
||||
import { Server } from './server';
|
||||
import { RmqUrl } from '../external/rmq-url.interface';
|
||||
import { AmqplibQueueOptions, RmqUrl } from '../external/rmq-url.interface';
|
||||
|
||||
let rqmPackage: any = {};
|
||||
|
||||
@@ -32,7 +32,7 @@ export class ServerRMQ extends Server implements CustomTransportStrategy {
|
||||
protected readonly urls: string[] | RmqUrl[];
|
||||
protected readonly queue: string;
|
||||
protected readonly prefetchCount: number;
|
||||
protected readonly queueOptions: any;
|
||||
protected readonly queueOptions: AmqplibQueueOptions;
|
||||
protected readonly isGlobalPrefetchCount: boolean;
|
||||
|
||||
constructor(protected readonly options: RmqOptions['options']) {
|
||||
|
||||
Reference in New Issue
Block a user