All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.messaging.servicebus.models.SubQueue Maven / Gradle / Ivy

There is a newer version: 7.18.0-beta.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.messaging.servicebus.models;

import com.azure.messaging.servicebus.ServiceBusClientBuilder.ServiceBusReceiverClientBuilder;
import com.azure.messaging.servicebus.ServiceBusReceiverAsyncClient;
import com.azure.messaging.servicebus.ServiceBusReceiverClient;

/**
 * Azure Service Bus queues and subscriptions provide a secondary sub-queue, called a dead-letter queue (DLQ).
 * The dead-letter queue doesn't need to be explicitly created and can't be deleted or otherwise managed
 * independent of the main entity.
 *
 * @see ServiceBusReceiverClientBuilder#subQueue(SubQueue)
 * @see Dead-letter
 * Queues
 */
public enum SubQueue {
    /**
     * Connect to the default entity (directly to the queue or subscription)
     */
    NONE,

    /**
     * Connect to a queue or subscription's dead-letter queue.
     *
     * This is builder for creating {@link ServiceBusReceiverClient} and {@link ServiceBusReceiverAsyncClient} to
     * consume dead-letter messages from Service Bus entity.
     */
     DEAD_LETTER_QUEUE,

    /**
     * Connect to a queue or subscription's transfer dead-letter queue.
     * This is builder for creating  {@link ServiceBusReceiverClient} and {@link ServiceBusReceiverAsyncClient} to
     * consume transfer dead-letter messages from Service Bus entity.
     */
    TRANSFER_DEAD_LETTER_QUEUE;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy