UNPKG

@message-queue-toolkit/amqp

Version:
12 lines 642 B
import { AbstractAmqpConsumer } from "./AbstractAmqpConsumer.js"; import { deleteAmqpQueue, ensureAmqpQueue } from "./utils/amqpQueueUtils.js"; export class AbstractAmqpQueueConsumer extends AbstractAmqpConsumer { async createMissingEntities() { if (this.deletionConfig && this.creationConfig) { await deleteAmqpQueue(this.channel, this.deletionConfig, this.creationConfig); } // biome-ignore lint/style/noNonNullAssertion: <explanation> await ensureAmqpQueue(this.connection, this.channel, this.creationConfig, this.locatorConfig); } } //# sourceMappingURL=AbstractAmqpQueueConsumer.js.map