Class MessageCounterInfo
- java.lang.Object
-
- org.apache.activemq.artemis.api.core.management.MessageCounterInfo
-
public final class MessageCounterInfo extends Object
Helper class to create Java Objects from the JSON serialization returned byQueueControl.listMessageCounter().
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MessageCounterInfofromJSON(String jsonString)Returns a MessageCounterInfo corresponding to the JSON serialization returned byQueueControl.listMessageCounter().longgetCount()Returns the number of messages added to the queue since it was created.longgetCountDelta()Returns the number of messages added to the queue since the last counter sample.intgetDepth()Returns the number of messages currently in the queue.intgetDepthDelta()Returns the number of messages in the queue since last counter sample.StringgetLastAckTimestamp()Returns the timestamp of the last time a message from the queue was acknolwedged.StringgetLastAddTimestamp()Returns the timestamp of the last time a message was added to the queue.StringgetName()Returns the name of the queue.StringgetSubscription()Returns the name of the subscription.StringgetUdpateTimestamp()Deprecated.StringgetUpdateTimestamp()Returns the timestamp of the last time the queue was updated.booleanisDurable()Returns whether the queue is durable.
-
-
-
Method Detail
-
fromJSON
public static MessageCounterInfo fromJSON(String jsonString) throws Exception
Returns a MessageCounterInfo corresponding to the JSON serialization returned byQueueControl.listMessageCounter().- Throws:
Exception
-
getName
public String getName()
Returns the name of the queue.
-
getSubscription
public String getSubscription()
Returns the name of the subscription.
-
isDurable
public boolean isDurable()
Returns whether the queue is durable.
-
getCount
public long getCount()
Returns the number of messages added to the queue since it was created.
-
getCountDelta
public long getCountDelta()
Returns the number of messages added to the queue since the last counter sample.
-
getDepth
public int getDepth()
Returns the number of messages currently in the queue.
-
getDepthDelta
public int getDepthDelta()
Returns the number of messages in the queue since last counter sample.
-
getLastAddTimestamp
public String getLastAddTimestamp()
Returns the timestamp of the last time a message was added to the queue.
-
getLastAckTimestamp
public String getLastAckTimestamp()
Returns the timestamp of the last time a message from the queue was acknolwedged.
-
getUpdateTimestamp
public String getUpdateTimestamp()
Returns the timestamp of the last time the queue was updated.
-
getUdpateTimestamp
@Deprecated public String getUdpateTimestamp()
Deprecated.Spelling error in public API. Remove in next major release.
-
-