Interface QueueViewMBean

    • Method Detail

      • removeMessage

        boolean removeMessage​(String messageId)
                       throws Exception
        Removes a message from the queue. If the message has already been dispatched to another consumer, the message cannot be deleted and this method will return false.
        Parameters:
        messageId -
        Returns:
        true if the message was found and could be successfully deleted.
        Throws:
        Exception
      • removeMatchingMessages

        int removeMatchingMessages​(String selector,
                                   int maximumMessages)
                            throws Exception
        Removes the messages matching the given selector up to the maximum number of matched messages
        Returns:
        the number of messages removed
        Throws:
        Exception
      • copyMessageTo

        boolean copyMessageTo​(String messageId,
                              String destinationName)
                       throws Exception
        Copies a given message to another destination.
        Parameters:
        messageId -
        destinationName -
        Returns:
        true if the message was found and was successfully copied to the other destination.
        Throws:
        Exception
      • copyMatchingMessagesTo

        int copyMatchingMessagesTo​(String selector,
                                   String destinationName,
                                   int maximumMessages)
                            throws Exception
        Copies the messages matching the given selector up to the maximum number of matched messages
        Returns:
        the number of messages copied
        Throws:
        Exception
      • moveMessageTo

        boolean moveMessageTo​(String messageId,
                              String destinationName)
                       throws Exception
        Moves the message to another destination.
        Parameters:
        messageId -
        destinationName -
        Returns:
        true if the message was found and was successfully copied to the other destination.
        Throws:
        Exception
      • doesCursorHaveSpace

        boolean doesCursorHaveSpace()
        Returns:
        true if the message cursor has memory space available to page in more messages
      • isCursorFull

        boolean isCursorFull()
        Returns:
        true if the cursor has reached its memory limit for paged in messages
      • cursorSize

        int cursorSize()
        Returns:
        the number of messages available to be paged in by the cursor
      • isCacheEnabled

        boolean isCacheEnabled()
        Returns:
        true if caching is currently enabled of for the destination
      • removeMessageGroup

        void removeMessageGroup​(String groupName)
        remove a message group = has the effect of rebalancing group
        Parameters:
        groupName -
      • removeAllMessageGroups

        void removeAllMessageGroups()
        remove all the message groups - will rebalance all message groups across consumers