public class MessageCounterInfo extends java.lang.Object
QueueControl.listMessageCounter()
.Constructor and Description |
---|
MessageCounterInfo(java.lang.String name,
java.lang.String subscription,
boolean durable,
long count,
long countDelta,
int depth,
int depthDelta,
java.lang.String lastAddTimestamp,
java.lang.String udpateTimestamp) |
Modifier and Type | Method and Description |
---|---|
static MessageCounterInfo |
fromJSON(java.lang.String jsonString)
Returns an array of RoleInfo corresponding to the JSON serialization returned
by
QueueControl.listMessageCounter() . |
long |
getCount()
Returns the number of messages added to the queue since it was created.
|
long |
getCountDelta()
Returns the number of messages added to the queue since the last counter sample.
|
int |
getDepth()
Returns the number of messages currently in the queue.
|
int |
getDepthDelta()
Returns the number of messages in the queue since last counter sample.
|
java.lang.String |
getLastAddTimestamp()
Returns the timestamp of the last time a message was added to the queue.
|
java.lang.String |
getName()
Returns the name of the queue.
|
java.lang.String |
getSubscription()
Returns the name of the subscription.
|
java.lang.String |
getUdpateTimestamp()
Returns the timestamp of the last time the queue was updated.
|
boolean |
isDurable()
Returns whether the queue is durable.
|
static java.lang.String |
toJSon(org.hornetq.core.messagecounter.MessageCounter counter) |
public MessageCounterInfo(java.lang.String name, java.lang.String subscription, boolean durable, long count, long countDelta, int depth, int depthDelta, java.lang.String lastAddTimestamp, java.lang.String udpateTimestamp)
public static java.lang.String toJSon(org.hornetq.core.messagecounter.MessageCounter counter) throws java.lang.Exception
java.lang.Exception
public static MessageCounterInfo fromJSON(java.lang.String jsonString) throws java.lang.Exception
QueueControl.listMessageCounter()
.java.lang.Exception
public java.lang.String getName()
public java.lang.String getSubscription()
public boolean isDurable()
public long getCount()
public long getCountDelta()
public int getDepth()
public int getDepthDelta()
public java.lang.String getLastAddTimestamp()
public java.lang.String getUdpateTimestamp()
Copyright © 2009 Red Hat Inc. All Rights Reserved.