Interface Queue

    • Method Detail

      • getID

        Long getID()
      • getFilter

        Filter getFilter()
      • setFilter

        void setFilter​(Filter filter)
      • setRoutingType

        void setRoutingType​(RoutingType routingType)
      • allowsReferenceCallback

        boolean allowsReferenceCallback()
        the current queue and consumer settings will allow use of the Reference Execution and callback. This is because
      • isDurable

        boolean isDurable()
      • durableUp

        int durableUp​(Message message)
      • durableDown

        int durableDown​(Message message)
      • isDurableMessage

        boolean isDurableMessage()
        The queue definition could be durable, but the messages could eventually be considered non durable. (e.g. purgeOnNoConsumers)
        Returns:
      • isAutoDelete

        boolean isAutoDelete()
      • isSwept

        default boolean isSwept()
      • setSwept

        default void setSwept​(boolean sweep)
      • getAutoDeleteDelay

        long getAutoDeleteDelay()
      • getAutoDeleteMessageCount

        long getAutoDeleteMessageCount()
      • isTemporary

        boolean isTemporary()
      • isAutoCreated

        boolean isAutoCreated()
      • isPurgeOnNoConsumers

        boolean isPurgeOnNoConsumers()
      • setPurgeOnNoConsumers

        void setPurgeOnNoConsumers​(boolean value)
      • isEnabled

        boolean isEnabled()
      • setEnabled

        void setEnabled​(boolean value)
      • getConsumersBeforeDispatch

        int getConsumersBeforeDispatch()
      • setConsumersBeforeDispatch

        void setConsumersBeforeDispatch​(int consumersBeforeDispatch)
      • getDelayBeforeDispatch

        long getDelayBeforeDispatch()
      • setDelayBeforeDispatch

        void setDelayBeforeDispatch​(long delayBeforeDispatch)
      • getDispatchStartTime

        long getDispatchStartTime()
      • isDispatching

        boolean isDispatching()
      • setDispatching

        void setDispatching​(boolean dispatching)
      • isExclusive

        boolean isExclusive()
      • setExclusive

        void setExclusive​(boolean value)
      • isLastValue

        boolean isLastValue()
      • isNonDestructive

        boolean isNonDestructive()
      • setNonDestructive

        void setNonDestructive​(boolean nonDestructive)
      • getMaxConsumers

        int getMaxConsumers()
      • setMaxConsumer

        void setMaxConsumer​(int maxConsumers)
      • getGroupBuckets

        int getGroupBuckets()
      • setGroupBuckets

        void setGroupBuckets​(int groupBuckets)
      • isGroupRebalance

        boolean isGroupRebalance()
      • setGroupRebalance

        void setGroupRebalance​(boolean groupRebalance)
      • isGroupRebalancePauseDispatch

        boolean isGroupRebalancePauseDispatch()
      • setGroupRebalancePauseDispatch

        void setGroupRebalancePauseDispatch​(boolean groupRebalancePauseDisptach)
      • setGroupFirstKey

        void setGroupFirstKey​(SimpleString groupFirstKey)
      • isConfigurationManaged

        boolean isConfigurationManaged()
      • setConfigurationManaged

        void setConfigurationManaged​(boolean configurationManaged)
      • addLingerSession

        void addLingerSession​(String sessionId)
      • removeLingerSession

        void removeLingerSession​(String sessionId)
      • removeConsumer

        void removeConsumer​(Consumer consumer)
      • getConsumerCount

        int getConsumerCount()
      • getConsumerRemovedTimestamp

        long getConsumerRemovedTimestamp()
      • setRingSize

        void setRingSize​(long ringSize)
      • getRingSize

        long getRingSize()
      • isMirrorController

        default boolean isMirrorController()
      • setMirrorController

        default void setMirrorController​(boolean mirrorController)
      • getConsumersRefCount

        ReferenceCounter getConsumersRefCount()
        This will hold a reference counter for every consumer present on the queue. The ReferenceCounter will know what to do when the counter became zeroed. This is used to control what to do with temporary queues, especially on shared subscriptions where the queue needs to be deleted when all the consumers are closed.
      • flushOnIntermediate

        default void flushOnIntermediate​(Runnable runnable)
      • deliverAsync

        void deliverAsync()
      • forceDelivery

        void forceDelivery()
        This method will make sure that any pending message (including paged message) will be delivered
      • deleteQueue

        void deleteQueue​(boolean removeConsumers)
                  throws Exception
        Throws:
        Exception
      • removeAddress

        void removeAddress()
                    throws Exception
        This method will push a removeAddress call into server's remove address
        Throws:
        Exception
      • getMessageCount

        long getMessageCount()
      • getPersistentSize

        long getPersistentSize()
        This is the size of the messages in the queue when persisted on disk which is used for metrics tracking to give an idea of the amount of data on the queue to be consumed Note that this includes all messages on the queue, even messages that are non-durable which may only be in memory
      • getDurableMessageCount

        long getDurableMessageCount()
        This is the number of the durable messages in the queue
      • getDurablePersistentSize

        long getDurablePersistentSize()
        This is the persistent size of all the durable messages in the queue
      • getDeliveringCount

        int getDeliveringCount()
      • getDeliveringSize

        long getDeliveringSize()
      • getDurableDeliveringCount

        int getDurableDeliveringCount()
      • getDurableDeliveringSize

        long getDurableDeliveringSize()
      • getScheduledCount

        int getScheduledCount()
      • getScheduledSize

        long getScheduledSize()
      • getDurableScheduledCount

        int getDurableScheduledCount()
      • getDurableScheduledSize

        long getDurableScheduledSize()
      • getDeliveringMessages

        Map<String,​List<MessageReference>> getDeliveringMessages()
        Return a Map consisting of consumer.toString and its messages Delivering message is a property of the consumer, this method will aggregate the results per Server's consumer object
        Returns:
      • getMessagesAdded

        long getMessagesAdded()
      • getAcknowledgeAttempts

        long getAcknowledgeAttempts()
      • getMessagesAcknowledged

        long getMessagesAcknowledged()
      • getMessagesExpired

        long getMessagesExpired()
      • getMessagesKilled

        long getMessagesKilled()
      • getMessagesReplaced

        long getMessagesReplaced()
      • deleteAllReferences

        int deleteAllReferences​(int flushLimit)
                         throws Exception
        Throws:
        Exception
      • deleteReference

        boolean deleteReference​(long messageID)
                         throws Exception
        Throws:
        Exception
      • deleteMatchingReferences

        default int deleteMatchingReferences​(int flushLImit,
                                             Filter filter)
                                      throws Exception
        Throws:
        Exception
      • expireReference

        boolean expireReference​(long messageID)
                         throws Exception
        Throws:
        Exception
      • expireReferences

        int expireReferences​(Filter filter)
                      throws Exception
        Expire all the references in the queue which matches the filter
        Throws:
        Exception
      • expireReferences

        default void expireReferences()
      • expireReferences

        void expireReferences​(Runnable done)
      • sendMessageToDeadLetterAddress

        boolean sendMessageToDeadLetterAddress​(long messageID)
                                        throws Exception
        Throws:
        Exception
      • sendMessagesToDeadLetterAddress

        int sendMessagesToDeadLetterAddress​(Filter filter)
                                     throws Exception
        Throws:
        Exception
      • sendToDeadLetterAddress

        boolean sendToDeadLetterAddress​(Transaction tx,
                                        MessageReference ref)
                                 throws Exception
        Parameters:
        tx -
        ref -
        Returns:
        whether or not the message was actually sent to a DLA with bindings
        Throws:
        Exception
      • changeReferencePriority

        boolean changeReferencePriority​(long messageID,
                                        byte newPriority)
                                 throws Exception
        Throws:
        Exception
      • changeReferencesPriority

        int changeReferencesPriority​(Filter filter,
                                     byte newPriority)
                              throws Exception
        Throws:
        Exception
      • addRedistributor

        void addRedistributor​(long delay)
      • cancelRedistributor

        void cancelRedistributor()
      • hasMatchingConsumer

        boolean hasMatchingConsumer​(Message message)
      • resetAllGroups

        void resetAllGroups()
      • getGroupCount

        int getGroupCount()
      • checkRedelivery

        Pair<Boolean,​Boolean> checkRedelivery​(MessageReference ref,
                                                    long timeBase,
                                                    boolean ignoreRedeliveryDelay)
                                             throws Exception
        Parameters:
        ref -
        timeBase -
        ignoreRedeliveryDelay -
        Returns:
        a Pair of Booleans: the first indicates whether or not redelivery happened; the second indicates whether or not the message was actually sent to a DLA with bindings
        Throws:
        Exception
      • pause

        void pause()
        Pauses the queue. It will receive messages but won't give them to the consumers until resumed. If a queue is paused, pausing it again will only throw a warning. To check if a queue is paused, invoke isPaused()
      • pause

        void pause​(boolean persist)
        Pauses the queue. It will receive messages but won't give them to the consumers until resumed. If a queue is paused, pausing it again will only throw a warning. To check if a queue is paused, invoke isPaused()
      • reloadPause

        void reloadPause​(long recordID)
      • resume

        void resume()
        Resumes the delivery of message for the queue. If a queue is resumed, resuming it again will only throw a warning. To check if a queue is resumed, invoke isPaused()
      • isPaused

        boolean isPaused()
        Returns:
        true if paused, false otherwise.
      • isPersistedPause

        boolean isPersistedPause()
        if the pause was persisted
        Returns:
      • resetAllIterators

        void resetAllIterators()
      • flushExecutor

        boolean flushExecutor()
      • isDirectDeliver

        boolean isDirectDeliver()
      • isInternalQueue

        boolean isInternalQueue()
        We can't send stuff to DLQ on queues used on clustered-bridge-communication
        Returns:
      • setInternalQueue

        void setInternalQueue​(boolean internalQueue)
      • resetMessagesAdded

        void resetMessagesAdded()
      • resetMessagesAcknowledged

        void resetMessagesAcknowledged()
      • resetMessagesExpired

        void resetMessagesExpired()
      • resetMessagesKilled

        void resetMessagesKilled()
      • incrementMesssagesAdded

        void incrementMesssagesAdded()
      • deliverScheduledMessages

        void deliverScheduledMessages()
                               throws ActiveMQException
        cancels scheduled messages and send them to the head of the queue.
        Throws:
        ActiveMQException
      • deliverScheduledMessages

        void deliverScheduledMessages​(String filter)
                               throws ActiveMQException
        cancels scheduled messages which match the filter and send them to the head of the queue.
        Throws:
        ActiveMQException
      • deliverScheduledMessage

        void deliverScheduledMessage​(long messageId)
                              throws ActiveMQException
        cancels scheduled message with the corresponding message ID and sends it to the head of the queue.
        Throws:
        ActiveMQException
      • getUser

        SimpleString getUser()
        Returns:
        the user associated with this queue
      • setUser

        void setUser​(SimpleString user)
        Parameters:
        user - the user associated with this queue
      • recheckRefCount

        void recheckRefCount​(OperationContext context)
        This is to perform a check on the counter again
      • getCreatedTimestamp

        default long getCreatedTimestamp()