Package com.tibco.tibjms.admin
Class SubscriptionInfo
- java.lang.Object
- 
- com.tibco.tibjms.admin.SubscriptionInfo
 
- 
 public class SubscriptionInfo extends java.lang.ObjectThis class represents a topic subscription in EMS Server.- Since:
- EMS 8.0
- See Also:
- TibjmsAdmin.getSubscriptions()
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConsumerCount()Returns the number of consumers for this subscription.longgetCreateTime()Returns this subscription's creation time in milliseconds.longgetID()Returns this subscription's ID.java.lang.StringgetName()Returns this subscription name.longgetPendingMessageCount()Returns the number of pending messages on this subscription.longgetPendingMessageSize()Returns combined size of pending messages for this subscription.java.lang.StringgetSelector()Returns this subscription's selector ornull.java.lang.StringgetTopicName()Returns the topic name this subscription is for.booleanhasSelector()Returnstrueif this subscription has a selector.booleanisDurable()Returnstrueif this subscription is a durable subscription.booleanisShared()Returnstrueif this subscription is a shared subscription.java.lang.StringtoString()Returns string representation of this object.
 
- 
- 
- 
Method Detail- 
getIDpublic long getID() Returns this subscription's ID. All subscriptions have unique positive ID.- Returns:
- subscription ID.
 
 - 
getNamepublic java.lang.String getName() Returns this subscription name. It will benullfor an unshared non-durable subscription.- Returns:
- Subscription's name or nullif this is an unshared non-durable subscription.
 
 - 
getCreateTimepublic long getCreateTime() Returns this subscription's creation time in milliseconds.- Returns:
- subscription's creation time in milliseconds.
 
 - 
getTopicNamepublic java.lang.String getTopicName() Returns the topic name this subscription is for.- Returns:
- this subscription's topic name.
 
 - 
getPendingMessageCountpublic long getPendingMessageCount() Returns the number of pending messages on this subscription.- Returns:
- number of pending messages, possibly 0.
- See Also:
- getPendingMessageSize()
 
 - 
getPendingMessageSizepublic long getPendingMessageSize() Returns combined size of pending messages for this subscription.- Returns:
- cumulative size of pending messages, possibly 0.
- See Also:
- getPendingMessageCount()
 
 - 
getConsumerCountpublic int getConsumerCount() Returns the number of consumers for this subscription. If the subscription is unshared, the count cannot exceed 1. If the subscription is shared, the count can exceed 1, since a shared subscription can have many shared consumers.
 For durable subscriptions (shared and unshared), this count can be 0 if there is no active durable consumer.- Returns:
- number of consumers on this subscription, possibly 0.
- See Also:
- isDurable(),- isShared()
 
 - 
hasSelectorpublic boolean hasSelector() Returnstrueif this subscription has a selector.- Returns:
- trueif this subscription has a selector.
- See Also:
- getSelector()
 
 - 
getSelectorpublic java.lang.String getSelector() Returns this subscription's selector ornull.- Returns:
- subscription's selector or nullif this subscription has no selector.
 
 - 
isSharedpublic boolean isShared() Returnstrueif this subscription is a shared subscription.- Returns:
- trueif this subscription is a shared subscription.
 
 - 
isDurablepublic boolean isDurable() Returnstrueif this subscription is a durable subscription.- Returns:
- trueif this subscription is a durable subscription.
 
 - 
toStringpublic java.lang.String toString() Returns string representation of this object.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-