com.microsoft.azure.servicebus.management.SubscriptionRuntimeInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-servicebus Show documentation
Show all versions of azure-servicebus Show documentation
Java library for Azure Service Bus
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.servicebus.management;
/**
* This provides runtime information of the subscription.
*/
public class SubscriptionRuntimeInfo extends EntityRuntimeInfo {
private String topicPath;
private String subscriptionName;
private long messageCount;
SubscriptionRuntimeInfo(String topicPath, String subscriptionName) {
this.topicPath = topicPath;
this.subscriptionName = subscriptionName;
this.path = EntityNameHelper.formatSubscriptionPath(topicPath, subscriptionName);
}
/**
* @return The path of the topic.
*/
public String getTopicPath() {
return topicPath;
}
/**
* @return The name of the subscription
*/
public String getSubscriptionName() {
return subscriptionName;
}
/**
* @return The total number of messages in the entity.
*/
public long getMessageCount() {
return messageCount;
}
void setMessageCount(long messageCount) {
this.messageCount = messageCount;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy