com.azure.messaging.servicebus.implementation.ServiceBusConstants 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.implementation;
import java.time.Duration;
/**
* Constants defined to be used for interaction with Service Bus.
*/
public class ServiceBusConstants {
public static final String AZURE_ACTIVE_DIRECTORY_SCOPE = "https://servicebus.azure.net/.default";
public static final Duration OPERATION_TIMEOUT = Duration.ofSeconds(60);
public static final Duration TOKEN_VALIDITY = Duration.ofMinutes(20);
// Please see here
// for more information on Azure resource provider namespaces.
public static final String AZ_TRACING_NAMESPACE_VALUE = "Microsoft.ServiceBus";
public static final String AZ_TRACING_SERVICE_NAME = "ServiceBus.";
/**
* Represents the maximum ttl for a message or entity.
*/
public static final Duration MAX_DURATION = Duration.parse("P10675199DT2H48M5.4775807S");
/**
* Represents the default lock duration for a message.
*/
public static final Duration DEFAULT_LOCK_DURATION = Duration.ofSeconds(60);
/**
* Represents the default duplicate detection duration.
*/
public static final Duration DEFAULT_DUPLICATE_DETECTION_DURATION = Duration.ofSeconds(60);
/**
* Represents the default max delivery count for a message.
*/
public static final int DEFAULT_MAX_DELIVERY_COUNT = 10;
/**
* Represents the default queue size in megabytes.
*/
public static final int DEFAULT_QUEUE_SIZE = 1024;
/**
* Represents the default topic size in megabytes.
*/
public static final int DEFAULT_TOPIC_SIZE = 1024;
}