public final class MessageCounterInfo extends Object
QueueControl.listMessageCounter()
.Constructor and Description |
---|
MessageCounterInfo(String name,
String subscription,
boolean durable,
long count,
long countDelta,
int depth,
int depthDelta,
String lastAddTimestamp,
String udpateTimestamp) |
Modifier and Type | Method and Description |
---|---|
static MessageCounterInfo |
fromJSON(String jsonString)
Returns a MessageCounterInfo 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.
|
String |
getLastAddTimestamp()
Returns the timestamp of the last time a message was added to the queue.
|
String |
getName()
Returns the name of the queue.
|
String |
getSubscription()
Returns the name of the subscription.
|
String |
getUdpateTimestamp()
Returns the timestamp of the last time the queue was updated.
|
boolean |
isDurable()
Returns whether the queue is durable.
|
static String |
toJSon(MessageCounter counter)
Returns a JSON String serialization of a
MessageCounter object. |
public static String toJSon(MessageCounter counter) throws Exception
MessageCounter
object.counter
- Exception
public static MessageCounterInfo fromJSON(String jsonString) throws Exception
QueueControl.listMessageCounter()
.Exception
public String getName()
public String getSubscription()
public boolean isDurable()
public long getCount()
public long getCountDelta()
public int getDepth()
public int getDepthDelta()
public String getLastAddTimestamp()
public String getUdpateTimestamp()
Copyright © 2018 JBoss by Red Hat. All rights reserved.