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

com.microsoft.azure.servicebus.management.SubscriptionRuntimeInfo Maven / Gradle / Ivy

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