Interface MessageReference

    • Method Detail

      • skipDelivery

        default boolean skipDelivery()
      • isPaged

        boolean isPaged()
      • getMessageID

        long getMessageID()
      • isDurable

        boolean isDurable()
      • onDelivery

        void onDelivery​(Consumer<? super MessageReference> callback)
        This is to be used in cases where a message delivery happens on an executor. Most MessageReference implementations will allow execution, and if it does, and the protocol requires an execution per message, this callback may be used. At the time of this implementation only AMQP was used.
      • getMessageMemoryEstimate

        int getMessageMemoryEstimate()
        We define this method aggregation here because on paging we need to hold the original estimate, so we need to perform some extra steps on paging.
        Returns:
      • getProtocolData

        Object getProtocolData()
        To be used on holding protocol specific data during the delivery. This will be only valid while the message is on the delivering queue at the consumer
      • setProtocolData

        void setProtocolData​(Object data)
        To be used on holding protocol specific data during the delivery. This will be only valid while the message is on the delivering queue at the consumer
      • getScheduledDeliveryTime

        long getScheduledDeliveryTime()
        Returns:
        The time in the future that delivery will be delayed until, or zero if no scheduled delivery will occur
      • setScheduledDeliveryTime

        void setScheduledDeliveryTime​(long scheduledDeliveryTime)
      • getDeliveryCount

        int getDeliveryCount()
      • setDeliveryCount

        void setDeliveryCount​(int deliveryCount)
      • setPersistedCount

        void setPersistedCount​(int deliveryCount)
      • getPersistedCount

        int getPersistedCount()
      • incrementDeliveryCount

        void incrementDeliveryCount()
      • decrementDeliveryCount

        void decrementDeliveryCount()
      • getQueue

        Queue getQueue()
      • emptyConsumerID

        void emptyConsumerID()
      • setConsumerId

        void setConsumerId​(long consumerID)
      • hasConsumerId

        boolean hasConsumerId()
      • getConsumerId

        long getConsumerId()
      • handled

        void handled()
      • setInDelivery

        void setInDelivery​(boolean alreadyDelivered)
      • isInDelivery

        boolean isInDelivery()
      • setAlreadyAcked

        void setAlreadyAcked()
      • isAlreadyAcked

        boolean isAlreadyAcked()
      • getPersistentSize

        long getPersistentSize()
                        throws ActiveMQException
        This is the size of the message when persisted on disk which is used for metrics tracking Note that even if the message itself is not persisted on disk (ie non-durable) this value is still used for metrics tracking for the amount of data on a queue
        Returns:
        Throws:
        ActiveMQException