Interface ServerConsumer

    • Method Detail

      • fireSlowConsumer

        void fireSlowConsumer()
      • allowReferenceCallback

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

        Object getProtocolData()
        this is to be used with anything specific on a protocol head.
      • setProtocolData

        void setProtocolData​(Object protocolData)
        this is to be used with anything specific on a protocol head.
      • setProtocolContext

        void setProtocolContext​(Object protocolContext)
        Parameters:
        protocolContext -
        See Also:
        getProtocolContext()
      • getProtocolContext

        Object getProtocolContext()
        An object set by the Protocol implementation. it could be anything pre-determined by the implementation
      • getID

        long getID()
      • getConnectionID

        Object getConnectionID()
      • removeItself

        void removeItself()
                   throws Exception
        This method is just to remove itself from Queues. If for any reason during a close an exception occurred, the exception treatment will call removeItself what should take the consumer out of any queues.
        Throws:
        Exception
      • setStarted

        void setStarted​(boolean started)
      • receiveCredits

        void receiveCredits​(int credits)
      • getQueue

        Queue getQueue()
      • backToDelivering

        void backToDelivering​(MessageReference reference)
        Some protocols may choose to send the message back to delivering instead of redeliver. For example openwire will redeliver through the client, so messages will go back to delivering list after rollback.
      • individualCancel

        void individualCancel​(long messageID,
                              boolean failed)
                       throws Exception
        Throws:
        Exception
      • forceDelivery

        void forceDelivery​(long sequence)
      • setTransferring

        void setTransferring​(boolean transferring)
      • isBrowseOnly

        boolean isBrowseOnly()
      • getCreationTime

        long getCreationTime()
      • getSessionID

        String getSessionID()
      • metricsAcknowledge

        void metricsAcknowledge​(MessageReference ref,
                                Transaction transaction)
        This is needed when some protocols (OW) handle the acks themselves and need to update the metrics
        Parameters:
        ref - the message reference
        transaction - the tx