UNPKG

@message-queue-toolkit/amqp

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