Interface DurableSubscriptionViewMBean

    • Method Detail

      • destroy

        void destroy()
              throws Exception
        Destroys the durable subscription so that messages will no longer be stored for this subscription
        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
      • doesCursorHaveMessagesBuffered

        boolean doesCursorHaveMessagesBuffered()
        Returns:
        true if the cursor has messages buffered to deliver
      • getCursorMemoryUsage

        long getCursorMemoryUsage()
        Returns:
        the cursor memory usage in bytes
      • getCursorPercentUsage

        int getCursorPercentUsage()
        Returns:
        the cursor memory usage as a percentage
      • cursorSize

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

        void removeMessage​(String messageId)
                    throws Exception
        Removes a message from the durable subscription.
        Parameters:
        messageId -
        Throws:
        Exception