|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.client.jms.admin.Subscription
public class Subscription
The Subscription
class is a utility class needed to show
information about client subscription.
Be careful, contrary to user, queue or topic administration object, the
Subscription
object is just a data structure; it is initialized
by user.getSubscription()
methods and no longer keep consistent
with the real state of subscription.
Field Summary | |
---|---|
private boolean |
durable
True if the subscription is durable. |
private int |
messageCount
Number of pending messages for this subscription. |
private java.lang.String |
name
Name of the subscription. |
private java.lang.String |
topicId
Related topic unique identification. |
Constructor Summary | |
---|---|
Subscription(java.lang.String name,
java.lang.String topicId,
int messageCount,
boolean durable)
Creates a new Subscription object. |
Method Summary | |
---|---|
int |
getMessageCount()
Returns the number of pending messages. |
java.lang.String |
getName()
Returns the subscription's name. |
java.lang.String |
getTopicId()
Returns the related topic unique identification. |
boolean |
isDurable()
Returns true if the subscription is durable, false otherwise. |
java.lang.String |
toString()
Returns a String image of the subscription. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
private java.lang.String topicId
private int messageCount
private boolean durable
Constructor Detail |
---|
public Subscription(java.lang.String name, java.lang.String topicId, int messageCount, boolean durable)
Subscription
object.
Method Detail |
---|
public final java.lang.String getName()
public final java.lang.String getTopicId()
public final int getMessageCount()
public final boolean isDurable()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |