Interface QueueControl
-
public interface QueueControlA QueueControl is used to manage a queue.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONSUMER_COUNT_DESCRIPTIONstatic StringDELIVERING_MESSAGE_COUNT_DESCRIPTIONstatic StringDELIVERING_SIZE_DESCRIPTIONstatic StringDURABLE_DELIVERING_MESSAGE_COUNT_DESCRIPTIONstatic StringDURABLE_DELIVERING_SIZE_DESCRIPTIONstatic StringDURABLE_MESSAGE_COUNT_DESCRIPTIONstatic StringDURABLE_PERSISTENT_SIZE_DESCRIPTIONstatic StringDURABLE_SCHEDULED_MESSAGE_COUNT_DESCRIPTIONstatic StringDURABLE_SCHEDULED_SIZE_DESCRIPTIONstatic StringMESSAGE_COUNT_DESCRIPTIONstatic StringMESSAGES_ACKNOWLEDGED_DESCRIPTIONstatic StringMESSAGES_ADDED_DESCRIPTIONstatic StringMESSAGES_EXPIRED_DESCRIPTIONstatic StringMESSAGES_KILLED_DESCRIPTIONstatic StringPERSISTENT_SIZE_DESCRIPTIONstatic StringSCHEDULED_MESSAGE_COUNT_DESCRIPTIONstatic StringSCHEDULED_SIZE_DESCRIPTION
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description CompositeData[]browse()CompositeData[]browse(int page, int pageSize)CompositeData[]browse(int page, int pageSize, String filter)CompositeData[]browse(String filter)booleanchangeMessagePriority(long messageID, int newPriority)Changes the message's priority corresponding to the specified message ID to the specified priority.intchangeMessagesPriority(String filter, int newPriority)Changes the priority for all the message corresponding to the specified filter to the specified priority.longcountDeliveringMessages(String filter)Counts the number of delivering messages in this queue matching the specified filter.StringcountDeliveringMessages(String filter, String groupByProperty)Counts the number of delivering messages in this queue matching the specified filter, grouped by the given property field.longcountMessages()longcountMessages(String filter)Counts the number of messages in this queue matching the specified filter.StringcountMessages(String filter, String groupByProperty)Counts the number of messages in this queue matching the specified filter, grouped by the given property field.voiddeliverScheduledMessage(long messageId)Deliver the scheduled message with the specified message IDvoiddeliverScheduledMessages(String filter)Deliver the scheduled messages which match the filtervoiddisable()Enables the queue.voidenable()Enables the queue.booleanexpireMessage(long messageID)Expires the message corresponding to the specified message ID.intexpireMessages(String filter)Expires all the message corresponding to the specified filter.voidflushExecutor()it will flush one cycle on internal executors, so you would be sure that any pending tasks are done before you call any other measure.longgetAcknowledgeAttempts()Returns the number of messages added to this queue since it was created.StringgetAddress()Returns the address this queue is bound to.intgetConsumerCount()Returns the number of consumers consuming messages from this queue.intgetConsumersBeforeDispatch()Return the Consumers Before DispatchStringgetDeadLetterAddress()Returns the dead-letter address associated with this queue.longgetDelayBeforeDispatch()Return the Consumers Before DispatchintgetDeliveringCount()Returns the number of messages that this queue is currently delivering to its consumers.longgetDeliveringSize()Returns the persistent size of messages that this queue is currently delivering to its consumers.intgetDurableDeliveringCount()Returns the number of durable messages that this queue is currently delivering to its consumers.longgetDurableDeliveringSize()Returns the size of durable messages that this queue is currently delivering to its consumers.longgetDurableMessageCount()Returns the number of durable messages currently in this queue.longgetDurablePersistentSize()Returns the persistent size of durable messages currently in this queue.longgetDurableScheduledCount()Returns the number of durable scheduled messages in this queue.longgetDurableScheduledSize()Returns the size of durable scheduled messages in this queue.StringgetExpiryAddress()Returns the expiry address associated with this queue.StringgetFilter()Returns the filter associated with this queue.LonggetFirstMessageAge()Returns the age of the first message in milliseconds.StringgetFirstMessageAsJSON()Returns the first message on the queue as JSONLonggetFirstMessageTimestamp()Returns the timestamp of the first message in milliseconds.intgetGroupBuckets()Will return the group buckets.intgetGroupCount()Will return the current number of active groups.StringgetGroupFirstKey()Will return the header key to notify a consumer of a group change.longgetID()Returns this queue ID.StringgetLastValueKey()The key used for the last value queuesintgetMaxConsumers()longgetMessageCount()Returns the number of messages currently in this queue.longgetMessagesAcknowledged()Returns the number of messages added to this queue since it was created.longgetMessagesAdded()Returns the number of messages added to this queue since it was created.longgetMessagesExpired()Returns the number of messages expired from this queue since it was created.longgetMessagesKilled()Returns the number of messages removed from this queue since it was created due to exceeding the max delivery attempts.StringgetName()Returns the name of this queue.longgetPersistentSize()Returns the persistent size of all messages currently in this queue.intgetPreparedTransactionMessageCount()Will return the number of messages stuck in prepared transactionslonggetRingSize()Will return the ring size.StringgetRoutingType()The routing type of this queue.longgetScheduledCount()Returns the number of scheduled messages in this queue.longgetScheduledSize()Returns the size of scheduled messages in this queue.StringgetUser()Returns the user that is associated with creating the queue.booleanisAutoDelete()Returns whether this queue is available for auto deletion.booleanisConfigurationManaged()booleanisDurable()Returns whether this queue is durable.booleanisEnabled()booleanisExclusive()booleanisGroupRebalance()Returns whether the groups of this queue are automatically rebalanced.booleanisGroupRebalancePauseDispatch()Returns whether the dispatch is paused when groups of this queue are automatically rebalanced.booleanisLastValue()booleanisPaused()Returns whether the queue is paused.booleanisPurgeOnNoConsumers()booleanisRetroactiveResource()Returns whether this queue is used for a retroactive address.booleanisTemporary()Returns whether this queue is temporary.StringlistConsumersAsJSON()Map<String,Map<String,Object>[]>listDeliveringMessages()Lists all the messages being deliver per consumer.StringlistDeliveringMessagesAsJSON()Executes a conversion oflistDeliveringMessages()to JSONStringlistGroupsAsJSON()StringlistMessageCounter()Lists the message counter for this queue.StringlistMessageCounterAsHTML()Lists the message counter for this queue as a HTML table.StringlistMessageCounterHistory()Lists the message counter history for this queue.StringlistMessageCounterHistoryAsHTML()Deprecated.Map<String,Object>[]listMessages(String filter)Lists all the messages in this queue matching the specified filter.StringlistMessagesAsJSON(String filter)Lists all the messages in this queue matching the specified filter using JSON serialization.Map<String,Object>[]listScheduledMessages()Lists all the messages scheduled for delivery for this queue.StringlistScheduledMessagesAsJSON()Lists all the messages scheduled for delivery for this queue using JSON serialization.booleanmoveMessage(long messageID, String otherQueueName)Moves the message corresponding to the specified message ID to the specified other queue.booleanmoveMessage(long messageID, String otherQueueName, boolean rejectDuplicates)Moves the message corresponding to the specified message ID to the specified other queue.intmoveMessages(int flushLimit, String filter, String otherQueueName, boolean rejectDuplicates)intmoveMessages(int flushLimit, String filter, String otherQueueName, boolean rejectDuplicates, int messageCount)intmoveMessages(String filter, String otherQueueName)Moves all the message corresponding to the specified filter to the specified other queue.intmoveMessages(String filter, String otherQueueName, boolean rejectDuplicates)Moves all the message corresponding to the specified filter to the specified other queue.voidpause()Pauses the queue.voidpause(boolean persist)Pauses the queue.intremoveAllMessages()Removes all the message from the queue.booleanremoveMessage(long messageID)Removes the message corresponding to the specified message ID.intremoveMessages(int flushLimit, String filter)Removes all the message corresponding to the specified filter.intremoveMessages(String filter)Removes all the message corresponding to the specified filter.voidresetAllGroups()Will reset the all the groups.voidresetGroup(String groupID)Will reset the group matching the given groupID.voidresetMessageCounter()Resets the message counter for this queue.voidresetMessagesAcknowledged()Resets the MessagesAdded propertyvoidresetMessagesAdded()Resets the MessagesAdded propertyvoidresetMessagesExpired()Resets the MessagesExpired propertyvoidresetMessagesKilled()Resets the MessagesExpired propertyvoidresume()Resumes the queue.booleanretryMessage(long messageID)Retries the message corresponding to the given messageID to the original queue.intretryMessages()Retries all messages on a DLQ to their respective original queues.StringsendMessage(Map<String,String> headers, int type, String body, boolean durable, String user, String password)StringsendMessage(Map<String,String> headers, int type, String body, boolean durable, String user, String password, boolean createMessageId)intsendMessagesToDeadLetterAddress(String filterStr)Sends all the message corresponding to the specified filter to this queue's dead letter address.booleansendMessageToDeadLetterAddress(long messageID)Sends the message corresponding to the specified message ID to this queue's dead letter address.
-
-
-
Field Detail
-
MESSAGE_COUNT_DESCRIPTION
static final String MESSAGE_COUNT_DESCRIPTION
- See Also:
- Constant Field Values
-
DURABLE_MESSAGE_COUNT_DESCRIPTION
static final String DURABLE_MESSAGE_COUNT_DESCRIPTION
- See Also:
- Constant Field Values
-
PERSISTENT_SIZE_DESCRIPTION
static final String PERSISTENT_SIZE_DESCRIPTION
- See Also:
- Constant Field Values
-
DURABLE_PERSISTENT_SIZE_DESCRIPTION
static final String DURABLE_PERSISTENT_SIZE_DESCRIPTION
- See Also:
- Constant Field Values
-
SCHEDULED_MESSAGE_COUNT_DESCRIPTION
static final String SCHEDULED_MESSAGE_COUNT_DESCRIPTION
- See Also:
- Constant Field Values
-
DURABLE_SCHEDULED_MESSAGE_COUNT_DESCRIPTION
static final String DURABLE_SCHEDULED_MESSAGE_COUNT_DESCRIPTION
- See Also:
- Constant Field Values
-
SCHEDULED_SIZE_DESCRIPTION
static final String SCHEDULED_SIZE_DESCRIPTION
- See Also:
- Constant Field Values
-
DURABLE_SCHEDULED_SIZE_DESCRIPTION
static final String DURABLE_SCHEDULED_SIZE_DESCRIPTION
- See Also:
- Constant Field Values
-
DELIVERING_MESSAGE_COUNT_DESCRIPTION
static final String DELIVERING_MESSAGE_COUNT_DESCRIPTION
- See Also:
- Constant Field Values
-
DURABLE_DELIVERING_MESSAGE_COUNT_DESCRIPTION
static final String DURABLE_DELIVERING_MESSAGE_COUNT_DESCRIPTION
- See Also:
- Constant Field Values
-
DELIVERING_SIZE_DESCRIPTION
static final String DELIVERING_SIZE_DESCRIPTION
- See Also:
- Constant Field Values
-
DURABLE_DELIVERING_SIZE_DESCRIPTION
static final String DURABLE_DELIVERING_SIZE_DESCRIPTION
- See Also:
- Constant Field Values
-
CONSUMER_COUNT_DESCRIPTION
static final String CONSUMER_COUNT_DESCRIPTION
- See Also:
- Constant Field Values
-
MESSAGES_ADDED_DESCRIPTION
static final String MESSAGES_ADDED_DESCRIPTION
- See Also:
- Constant Field Values
-
MESSAGES_ACKNOWLEDGED_DESCRIPTION
static final String MESSAGES_ACKNOWLEDGED_DESCRIPTION
- See Also:
- Constant Field Values
-
MESSAGES_EXPIRED_DESCRIPTION
static final String MESSAGES_EXPIRED_DESCRIPTION
- See Also:
- Constant Field Values
-
MESSAGES_KILLED_DESCRIPTION
static final String MESSAGES_KILLED_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
String getName()
Returns the name of this queue.
-
getAddress
String getAddress()
Returns the address this queue is bound to.
-
getID
long getID()
Returns this queue ID.
-
isTemporary
boolean isTemporary()
Returns whether this queue is temporary.
-
isRetroactiveResource
boolean isRetroactiveResource()
Returns whether this queue is used for a retroactive address.
-
isDurable
boolean isDurable()
Returns whether this queue is durable.
-
getUser
String getUser()
Returns the user that is associated with creating the queue.
-
getRoutingType
String getRoutingType()
The routing type of this queue.
-
getFilter
String getFilter()
Returns the filter associated with this queue.
-
getMessageCount
long getMessageCount()
Returns the number of messages currently in this queue.
-
getPersistentSize
long getPersistentSize()
Returns the persistent size of all messages currently in this queue. The persistent size of a message is the amount of space the message would take up on disk which is used to track how much data there is to consume on this queue
-
getDurableMessageCount
long getDurableMessageCount()
Returns the number of durable messages currently in this queue.
-
getDurablePersistentSize
long getDurablePersistentSize()
Returns the persistent size of durable messages currently in this queue. The persistent size of a message is the amount of space the message would take up on disk which is used to track how much data there is to consume on this queue
-
getScheduledCount
long getScheduledCount()
Returns the number of scheduled messages in this queue.
-
getScheduledSize
long getScheduledSize()
Returns the size of scheduled messages in this queue.
-
getDurableScheduledCount
long getDurableScheduledCount()
Returns the number of durable scheduled messages in this queue.
-
getDurableScheduledSize
long getDurableScheduledSize()
Returns the size of durable scheduled messages in this queue.
-
getConsumerCount
int getConsumerCount()
Returns the number of consumers consuming messages from this queue.
-
getDeliveringCount
int getDeliveringCount()
Returns the number of messages that this queue is currently delivering to its consumers.
-
getDeliveringSize
long getDeliveringSize()
Returns the persistent size of messages that this queue is currently delivering to its consumers.
-
getDurableDeliveringCount
int getDurableDeliveringCount()
Returns the number of durable messages that this queue is currently delivering to its consumers.
-
getDurableDeliveringSize
long getDurableDeliveringSize()
Returns the size of durable messages that this queue is currently delivering to its consumers.
-
getMessagesAdded
long getMessagesAdded()
Returns the number of messages added to this queue since it was created.
-
getMessagesAcknowledged
long getMessagesAcknowledged()
Returns the number of messages added to this queue since it was created.
-
getAcknowledgeAttempts
long getAcknowledgeAttempts()
Returns the number of messages added to this queue since it was created.
-
getMessagesExpired
long getMessagesExpired()
Returns the number of messages expired from this queue since it was created.
-
getMessagesKilled
long getMessagesKilled()
Returns the number of messages removed from this queue since it was created due to exceeding the max delivery attempts.
-
getFirstMessageAsJSON
String getFirstMessageAsJSON() throws Exception
Returns the first message on the queue as JSON- Throws:
Exception
-
getFirstMessageTimestamp
Long getFirstMessageTimestamp() throws Exception
Returns the timestamp of the first message in milliseconds.- Throws:
Exception
-
getFirstMessageAge
Long getFirstMessageAge() throws Exception
Returns the age of the first message in milliseconds.- Throws:
Exception
-
getExpiryAddress
String getExpiryAddress()
Returns the expiry address associated with this queue.
-
getDeadLetterAddress
String getDeadLetterAddress()
Returns the dead-letter address associated with this queue.
-
getMaxConsumers
int getMaxConsumers()
-
isPurgeOnNoConsumers
boolean isPurgeOnNoConsumers()
-
isEnabled
boolean isEnabled()
-
enable
void enable() throws ExceptionEnables the queue. Messages are now routed to this queue.- Throws:
Exception
-
disable
void disable() throws ExceptionEnables the queue. Messages are not routed to this queue.- Throws:
Exception
-
isConfigurationManaged
boolean isConfigurationManaged()
-
isExclusive
boolean isExclusive()
-
isLastValue
boolean isLastValue()
-
getLastValueKey
String getLastValueKey()
The key used for the last value queues
-
getConsumersBeforeDispatch
int getConsumersBeforeDispatch()
Return the Consumers Before Dispatch- Returns:
-
getDelayBeforeDispatch
long getDelayBeforeDispatch()
Return the Consumers Before Dispatch- Returns:
-
listScheduledMessages
Map<String,Object>[] listScheduledMessages() throws Exception
Lists all the messages scheduled for delivery for this queue.
1 Map represents 1 message, keys are the message's properties and headers, values are the corresponding values.- Throws:
Exception
-
listScheduledMessagesAsJSON
String listScheduledMessagesAsJSON() throws Exception
Lists all the messages scheduled for delivery for this queue using JSON serialization.- Throws:
Exception
-
listDeliveringMessages
Map<String,Map<String,Object>[]> listDeliveringMessages() throws Exception
Lists all the messages being deliver per consumer.
The Map's key is a toString representation for the consumer. Each consumer will then return aMap<String,Object>[]same way is returned bylistScheduledMessages()- Throws:
Exception
-
listDeliveringMessagesAsJSON
String listDeliveringMessagesAsJSON() throws Exception
Executes a conversion oflistDeliveringMessages()to JSON- Returns:
- Throws:
Exception
-
listMessages
Map<String,Object>[] listMessages(String filter) throws Exception
Lists all the messages in this queue matching the specified filter.
1 Map represents 1 message, keys are the message's properties and headers, values are the corresponding values.
Usingnullor an empty filter will list all messages from this queue.- Throws:
Exception
-
listMessagesAsJSON
String listMessagesAsJSON(String filter) throws Exception
Lists all the messages in this queue matching the specified filter using JSON serialization.
Usingnullor an empty filter will list all messages from this queue.- Throws:
Exception
-
countMessages
long countMessages(String filter) throws Exception
Counts the number of messages in this queue matching the specified filter.
Usingnullor an empty filter will count all messages from this queue.- Throws:
Exception
-
countMessages
String countMessages(String filter, String groupByProperty) throws Exception
Counts the number of messages in this queue matching the specified filter, grouped by the given property field. In case of null property will be grouped in "null"
Usingnullor an empty filter will count all messages from this queue.- Throws:
Exception
-
countDeliveringMessages
long countDeliveringMessages(String filter) throws Exception
Counts the number of delivering messages in this queue matching the specified filter.
Usingnullor an empty filter will count all messages from this queue.- Throws:
Exception
-
countDeliveringMessages
String countDeliveringMessages(String filter, String groupByProperty) throws Exception
Counts the number of delivering messages in this queue matching the specified filter, grouped by the given property field. In case of null property will be grouped in "null"
Usingnullor an empty filter will count all messages from this queue.- Throws:
Exception
-
removeMessage
boolean removeMessage(long messageID) throws ExceptionRemoves the message corresponding to the specified message ID.- Returns:
trueif the message was removed,falseelse- Throws:
Exception
-
removeMessages
int removeMessages(String filter) throws Exception
Removes all the message corresponding to the specified filter.
Usingnullor an empty filter will remove all messages from this queue.- Returns:
- the number of removed messages
- Throws:
Exception
-
removeMessages
int removeMessages(int flushLimit, String filter) throws ExceptionRemoves all the message corresponding to the specified filter.
Usingnullor an empty filter will remove all messages from this queue.- Returns:
- the number of removed messages
- Throws:
Exception
-
removeAllMessages
int removeAllMessages() throws ExceptionRemoves all the message from the queue.- Returns:
- the number of removed messages
- Throws:
Exception
-
expireMessages
int expireMessages(String filter) throws Exception
Expires all the message corresponding to the specified filter.
Usingnullor an empty filter will expire all messages from this queue.- Returns:
- the number of expired messages
- Throws:
Exception
-
expireMessage
boolean expireMessage(long messageID) throws ExceptionExpires the message corresponding to the specified message ID.- Returns:
trueif the message was expired,falseelse- Throws:
Exception
-
retryMessage
boolean retryMessage(long messageID) throws ExceptionRetries the message corresponding to the given messageID to the original queue. This is appropriate on dead messages on Dead letter queues only.- Parameters:
messageID-- Returns:
trueif the message was retried,falseelse- Throws:
Exception
-
retryMessages
int retryMessages() throws ExceptionRetries all messages on a DLQ to their respective original queues. This is appropriate on dead messages on Dead letter queues only.- Returns:
- the number of retried messages.
- Throws:
Exception
-
moveMessage
boolean moveMessage(long messageID, String otherQueueName) throws ExceptionMoves the message corresponding to the specified message ID to the specified other queue.- Returns:
trueif the message was moved,falseelse- Throws:
Exception
-
moveMessage
boolean moveMessage(long messageID, String otherQueueName, boolean rejectDuplicates) throws ExceptionMoves the message corresponding to the specified message ID to the specified other queue.- Returns:
trueif the message was moved,falseelse- Throws:
Exception
-
moveMessages
int moveMessages(String filter, String otherQueueName) throws Exception
Moves all the message corresponding to the specified filter to the specified other queue. RejectDuplicates = false on this case
Usingnullor an empty filter will move all messages from this queue.- Returns:
- the number of moved messages
- Throws:
Exception
-
moveMessages
int moveMessages(String filter, String otherQueueName, boolean rejectDuplicates) throws Exception
Moves all the message corresponding to the specified filter to the specified other queue.
Usingnullor an empty filter will move all messages from this queue.- Returns:
- the number of moved messages
- Throws:
Exception
-
moveMessages
int moveMessages(int flushLimit, String filter, String otherQueueName, boolean rejectDuplicates) throws Exception- Throws:
Exception
-
moveMessages
int moveMessages(int flushLimit, String filter, String otherQueueName, boolean rejectDuplicates, int messageCount) throws Exception- Throws:
Exception
-
sendMessageToDeadLetterAddress
boolean sendMessageToDeadLetterAddress(long messageID) throws ExceptionSends the message corresponding to the specified message ID to this queue's dead letter address.- Returns:
trueif the message was sent to the dead letter address,falseelse- Throws:
Exception
-
sendMessagesToDeadLetterAddress
int sendMessagesToDeadLetterAddress(String filterStr) throws Exception
Sends all the message corresponding to the specified filter to this queue's dead letter address.
Usingnullor an empty filter will send all messages from this queue.- Returns:
- the number of sent messages
- Throws:
Exception
-
sendMessage
String sendMessage(Map<String,String> headers, int type, String body, boolean durable, String user, String password) throws Exception
- Parameters:
headers- the message headers and properties to set. Can only container Strings maped to primitive types.body- the text to senddurable-user-password-- Returns:
- Throws:
Exception
-
sendMessage
String sendMessage(Map<String,String> headers, int type, String body, boolean durable, String user, String password, boolean createMessageId) throws Exception
- Parameters:
headers- the message headers and properties to set. Can only container Strings maped to primitive types.body- the text to senddurable-user-password-createMessageId- whether or not to auto generate a Message ID- Returns:
- Throws:
Exception
-
changeMessagePriority
boolean changeMessagePriority(long messageID, int newPriority) throws ExceptionChanges the message's priority corresponding to the specified message ID to the specified priority.- Parameters:
newPriority- between 0 and 9 inclusive.- Returns:
trueif the message priority was changed- Throws:
Exception
-
changeMessagesPriority
int changeMessagesPriority(String filter, int newPriority) throws Exception
Changes the priority for all the message corresponding to the specified filter to the specified priority.
Usingnullor an empty filter will change all messages from this queue.- Returns:
- the number of changed messages
- Throws:
Exception
-
listMessageCounter
String listMessageCounter() throws Exception
Lists the message counter for this queue.- Throws:
Exception
-
resetMessageCounter
void resetMessageCounter() throws ExceptionResets the message counter for this queue.- Throws:
Exception
-
listMessageCounterAsHTML
String listMessageCounterAsHTML() throws Exception
Lists the message counter for this queue as a HTML table.- Throws:
Exception
-
listMessageCounterHistory
String listMessageCounterHistory() throws Exception
Lists the message counter history for this queue.- Throws:
Exception
-
listMessageCounterHistoryAsHTML
@Deprecated String listMessageCounterHistoryAsHTML() throws Exception
Deprecated.Lists the message counter history for this queue as a HTML table.- Throws:
Exception
-
pause
void pause() throws ExceptionPauses the queue. Messages are no longer delivered to its consumers.- Throws:
Exception
-
pause
void pause(boolean persist) throws ExceptionPauses the queue. Messages are no longer delivered to its consumers.- Throws:
Exception
-
resume
void resume() throws ExceptionResumes the queue. Messages are again delivered to its consumers.- Throws:
Exception
-
browse
CompositeData[] browse() throws Exception
- Throws:
Exception
-
browse
CompositeData[] browse(String filter) throws Exception
- Throws:
Exception
-
browse
CompositeData[] browse(int page, int pageSize) throws Exception
- Throws:
Exception
-
browse
CompositeData[] browse(int page, int pageSize, String filter) throws Exception
- Throws:
Exception
-
resetMessagesAdded
void resetMessagesAdded() throws ExceptionResets the MessagesAdded property- Throws:
Exception
-
resetMessagesAcknowledged
void resetMessagesAcknowledged() throws ExceptionResets the MessagesAdded property- Throws:
Exception
-
resetMessagesExpired
void resetMessagesExpired() throws ExceptionResets the MessagesExpired property- Throws:
Exception
-
resetMessagesKilled
void resetMessagesKilled() throws ExceptionResets the MessagesExpired property- Throws:
Exception
-
flushExecutor
void flushExecutor()
it will flush one cycle on internal executors, so you would be sure that any pending tasks are done before you call any other measure. It is useful if you need the exact number of counts on a message
-
resetAllGroups
void resetAllGroups()
Will reset the all the groups. This is useful if you want a complete rebalance of the groups to consumers
-
resetGroup
void resetGroup(String groupID)
Will reset the group matching the given groupID. This is useful if you want the given group to be rebalanced to the consumers
-
getGroupCount
int getGroupCount()
Will return the current number of active groups.
-
getRingSize
long getRingSize()
Will return the ring size.
-
isGroupRebalance
boolean isGroupRebalance()
Returns whether the groups of this queue are automatically rebalanced.
-
isGroupRebalancePauseDispatch
boolean isGroupRebalancePauseDispatch()
Returns whether the dispatch is paused when groups of this queue are automatically rebalanced.
-
getGroupBuckets
int getGroupBuckets()
Will return the group buckets.
-
getGroupFirstKey
String getGroupFirstKey()
Will return the header key to notify a consumer of a group change.
-
getPreparedTransactionMessageCount
int getPreparedTransactionMessageCount()
Will return the number of messages stuck in prepared transactions
-
deliverScheduledMessages
void deliverScheduledMessages(String filter) throws Exception
Deliver the scheduled messages which match the filter- Throws:
Exception
-
deliverScheduledMessage
void deliverScheduledMessage(long messageId) throws ExceptionDeliver the scheduled message with the specified message ID- Throws:
Exception
-
isAutoDelete
boolean isAutoDelete()
Returns whether this queue is available for auto deletion.
-
-