Class MessageCounterInfo
java.lang.Object
org.apache.activemq.artemis.api.core.management.MessageCounterInfo
Helper class to create Java Objects from the JSON serialization returned by
QueueControl.listMessageCounter()
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageCounterInfo
Returns a MessageCounterInfo corresponding to the JSON serialization returned byQueueControl.listMessageCounter()
.long
getCount()
Returns the number of messages added to the queue since it was created.long
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
Returns the number of messages in the queue since last counter sample.Returns the timestamp of the last time a message from the queue was acknolwedged.Returns the timestamp of the last time a message was added to the queue.getName()
Returns the name of the queue.Returns the name of the subscription.Deprecated.Returns the timestamp of the last time the queue was updated.boolean
Returns whether the queue is durable.
-
Constructor Details
-
MessageCounterInfo
-
-
Method Details
-
fromJSON
Returns a MessageCounterInfo corresponding to the JSON serialization returned byQueueControl.listMessageCounter()
.- Returns:
- a MessageCounterInfo corresponding to the JSON serialization returned by
QueueControl.listMessageCounter()
- Throws:
Exception
-
getName
Returns the name of the queue.- Returns:
- the name of the queue
-
getSubscription
Returns the name of the subscription.- Returns:
- the name of the subscription
-
isDurable
public boolean isDurable()Returns whether the queue is durable.- Returns:
- whether the queue is durable
-
getCount
public long getCount()Returns the number of messages added to the queue since it was created.- 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.- 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.- 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.- Returns:
- the number of messages in the queue since last counter sample
-
getLastAddTimestamp
Returns the timestamp of the last time a message was added to the queue.- Returns:
- the timestamp of the last time a message was added to the queue
-
getLastAckTimestamp
Returns the timestamp of the last time a message from the queue was acknolwedged.- Returns:
- the timestamp of the last time a message from the queue was acknolwedged
-
getUpdateTimestamp
Returns the timestamp of the last time the queue was updated.- Returns:
- the timestamp of the last time the queue was updated
-
getUdpateTimestamp
Deprecated.Spelling error in public API. Remove in next major release.
-