• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ServiceBusSubscription类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中com.microsoft.azure.management.servicebus.ServiceBusSubscription的典型用法代码示例。如果您正苦于以下问题:Java ServiceBusSubscription类的具体用法?Java ServiceBusSubscription怎么用?Java ServiceBusSubscription使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ServiceBusSubscription类属于com.microsoft.azure.management.servicebus包,在下文中一共展示了ServiceBusSubscription类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: print

点赞 2

import com.microsoft.azure.management.servicebus.ServiceBusSubscription; //导入依赖的package包/类
/**
 * Print service bus subscription info.
 * @param serviceBusSubscription a service bus subscription
 */
public static void print(ServiceBusSubscription serviceBusSubscription) {
    StringBuilder builder = new StringBuilder()
            .append("Service bus subscription: ").append(serviceBusSubscription.id())
            .append("\n\tName: ").append(serviceBusSubscription.name())
            .append("\n\tResourceGroupName: ").append(serviceBusSubscription.resourceGroupName())
            .append("\n\tCreatedAt: ").append(serviceBusSubscription.createdAt())
            .append("\n\tUpdatedAt: ").append(serviceBusSubscription.updatedAt())
            .append("\n\tAccessedAt: ").append(serviceBusSubscription.accessedAt())
            .append("\n\tActiveMessageCount: ").append(serviceBusSubscription.activeMessageCount())
            .append("\n\tDeadLetterMessageCount: ").append(serviceBusSubscription.deadLetterMessageCount())
            .append("\n\tDefaultMessageTtlDuration: ").append(serviceBusSubscription.defaultMessageTtlDuration())
            .append("\n\tIsBatchedOperationsEnabled: ").append(serviceBusSubscription.isBatchedOperationsEnabled())
            .append("\n\tDeleteOnIdleDurationInMinutes: ").append(serviceBusSubscription.deleteOnIdleDurationInMinutes())
            .append("\n\tScheduledMessageCount: ").append(serviceBusSubscription.scheduledMessageCount())
            .append("\n\tStatus: ").append(serviceBusSubscription.status())
            .append("\n\tTransferMessageCount: ").append(serviceBusSubscription.transferMessageCount())
            .append("\n\tIsDeadLetteringEnabledForExpiredMessages: ").append(serviceBusSubscription.isDeadLetteringEnabledForExpiredMessages())
            .append("\n\tIsSessionEnabled: ").append(serviceBusSubscription.isSessionEnabled())
            .append("\n\tLockDurationInSeconds: ").append(serviceBusSubscription.lockDurationInSeconds())
            .append("\n\tMaxDeliveryCountBeforeDeadLetteringMessage: ").append(serviceBusSubscription.maxDeliveryCountBeforeDeadLetteringMessage())
            .append("\n\tIsDeadLetteringEnabledForFilterEvaluationFailedMessages: ").append(serviceBusSubscription.isDeadLetteringEnabledForFilterEvaluationFailedMessages())
            .append("\n\tTransferMessageCount: ").append(serviceBusSubscription.transferMessageCount())
            .append("\n\tTransferDeadLetterMessageCount: ").append(serviceBusSubscription.transferDeadLetterMessageCount());

    System.out.println(builder.toString());
}
 

开发者ID:Azure-Samples,
项目名称:acr-java-manage-azure-container-registry,
代码行数:31,
代码来源:Utils.java

示例2: listByParent

点赞 2

import com.microsoft.azure.management.servicebus.ServiceBusSubscription; //导入依赖的package包/类
@Override
public PagedList<ServiceBusSubscription> listByParent(String resourceGroupName, String parentName) {
    // 'IndependentChildResourcesImpl' will be refactoring to remove all 'ByParent' methods
    // This method is not exposed to end user from any of the derived types of IndependentChildResourcesImpl
    //
    throw new UnsupportedOperationException();
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:8,
代码来源:ServiceBusSubscriptionsImpl.java

示例3: getByParentAsync

点赞 2

import com.microsoft.azure.management.servicebus.ServiceBusSubscription; //导入依赖的package包/类
@Override
public Observable<ServiceBusSubscription> getByParentAsync(String resourceGroup, String parentName, String name) {
    // 'IndependentChildResourcesImpl' will be refactoring to remove all 'ByParent' methods
    // This method is not exposed to end user from any of the derived types of IndependentChildResourcesImpl
    //
    throw new UnsupportedOperationException();
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:8,
代码来源:ServiceBusSubscriptionsImpl.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)