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.QueueQuery
getName
in interface ClientSession.QueueQuery
public SimpleString getAddress()
ClientSession.QueueQuery
getAddress
in interface ClientSession.QueueQuery
public int getConsumerCount()
ClientSession.QueueQuery
getConsumerCount
in interface ClientSession.QueueQuery
public SimpleString getFilterString()
ClientSession.QueueQuery
null
if the queue has no filter).getFilterString
in interface ClientSession.QueueQuery
public long getMessageCount()
ClientSession.QueueQuery
getMessageCount
in interface ClientSession.QueueQuery
public boolean isDurable()
ClientSession.QueueQuery
true
if the queue is durable, false
else.isDurable
in interface ClientSession.QueueQuery
public boolean isAutoCreateJmsQueues()
ClientSession.QueueQuery
true
if auto-creation for this queue is enabled and if the queue queried is a JMS queue,
false
else.isAutoCreateJmsQueues
in interface ClientSession.QueueQuery
public boolean isTemporary()
ClientSession.QueueQuery
true
if the queue is temporary, false
else.isTemporary
in interface ClientSession.QueueQuery
public boolean isExists()
ClientSession.QueueQuery
true
if the queue exists, false
else.isExists
in interface ClientSession.QueueQuery
Copyright © 2016 JBoss by Red Hat. All rights reserved.