com.azure.messaging.servicebus.models.SubQueue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-messaging-servicebus Show documentation
Show all versions of azure-messaging-servicebus Show documentation
Libraries built on Microsoft Azure Service Bus
// 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;
}