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 lastAckTimestamp,
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 |
getLastAckTimestamp()
Returns the timestamp of the last time a message from the queue was acknolwedged.
|
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()
Deprecated.
|
String |
getUpdateTimestamp()
Returns the timestamp of the last time the queue was updated.
|
boolean |
isDurable()
Returns whether the queue is durable.
|
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 getLastAckTimestamp()
public String getUpdateTimestamp()
@Deprecated public String getUdpateTimestamp()
Copyright © 2021 JBoss by Red Hat. All rights reserved.