public class QueueQueryImpl extends Object implements ClientSession.QueueQuery
| Constructor and Description |
|---|
QueueQueryImpl(boolean durable,
boolean temporary,
int consumerCount,
long messageCount,
SimpleString filterString,
SimpleString address,
SimpleString name,
boolean exists) |
QueueQueryImpl(boolean durable,
boolean temporary,
int consumerCount,
long messageCount,
SimpleString filterString,
SimpleString address,
SimpleString name,
boolean exists,
boolean autoCreateJmsQueues) |
| Modifier and Type | Method and Description |
|---|---|
SimpleString |
getAddress()
Returns the address that the queue is bound to.
|
int |
getConsumerCount()
Returns the number of consumers attached to the queue.
|
SimpleString |
getFilterString()
Returns the queue's filter string (or
null if the queue has no filter). |
long |
getMessageCount()
Returns the number of messages in the queue.
|
SimpleString |
getName()
Return the name of the queue
|
boolean |
isAutoCreateJmsQueues()
Returns
true if auto-creation for this queue is enabled and if the queue queried is a JMS queue,
false else. |
boolean |
isDurable()
Returns
true if the queue is durable, false else. |
boolean |
isExists()
Returns
true if the queue exists, false else. |
boolean |
isTemporary()
Return
true if the queue is temporary, false else. |
public QueueQueryImpl(boolean durable,
boolean temporary,
int consumerCount,
long messageCount,
SimpleString filterString,
SimpleString address,
SimpleString name,
boolean exists)
public QueueQueryImpl(boolean durable,
boolean temporary,
int consumerCount,
long messageCount,
SimpleString filterString,
SimpleString address,
SimpleString name,
boolean exists,
boolean autoCreateJmsQueues)
public SimpleString getName()
ClientSession.QueueQuerygetName in interface ClientSession.QueueQuerypublic SimpleString getAddress()
ClientSession.QueueQuerygetAddress in interface ClientSession.QueueQuerypublic int getConsumerCount()
ClientSession.QueueQuerygetConsumerCount in interface ClientSession.QueueQuerypublic SimpleString getFilterString()
ClientSession.QueueQuerynull if the queue has no filter).getFilterString in interface ClientSession.QueueQuerypublic long getMessageCount()
ClientSession.QueueQuerygetMessageCount in interface ClientSession.QueueQuerypublic boolean isDurable()
ClientSession.QueueQuerytrue if the queue is durable, false else.isDurable in interface ClientSession.QueueQuerypublic boolean isAutoCreateJmsQueues()
ClientSession.QueueQuerytrue if auto-creation for this queue is enabled and if the queue queried is a JMS queue,
false else.isAutoCreateJmsQueues in interface ClientSession.QueueQuerypublic boolean isTemporary()
ClientSession.QueueQuerytrue if the queue is temporary, false else.isTemporary in interface ClientSession.QueueQuerypublic boolean isExists()
ClientSession.QueueQuerytrue if the queue exists, false else.isExists in interface ClientSession.QueueQueryCopyright © 2018 JBoss by Red Hat. All rights reserved.