Interface AmqpLink

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addCloseAction​(Runnable action)
      Adds a new Runnable that is called on close of this link.
      void close​(org.apache.qpid.proton.amqp.transport.ErrorCondition error)
      Close the Link with an error indicating the reson for the close.
      void commit​(LocalTransactionId txnId)
      Handle work necessary on commit of transacted resources associated with this Link instance.
      void delivery​(org.apache.qpid.proton.engine.Delivery delivery)
      Called when a new Delivery arrives for the given Link.
      void detach()
      Request from the remote peer to detach this resource.
      void flow()
      Handles an incoming flow control.
      ActiveMQDestination getDestination()  
      void rollback​(LocalTransactionId txnId)
      Handle work necessary on rollback of transacted resources associated with this Link instance.
      void setDestination​(ActiveMQDestination destination)
      Sets the ActiveMQDestination that this link will be servicing.
    • Method Detail

      • close

        void close​(org.apache.qpid.proton.amqp.transport.ErrorCondition error)
        Close the Link with an error indicating the reson for the close.
        Parameters:
        error - the error that prompted the close.
      • detach

        void detach()
        Request from the remote peer to detach this resource.
      • flow

        void flow()
           throws Exception
        Handles an incoming flow control.
        Throws:
        Excption - if an error occurs during the flow processing.
        Exception
      • delivery

        void delivery​(org.apache.qpid.proton.engine.Delivery delivery)
               throws Exception
        Called when a new Delivery arrives for the given Link.
        Parameters:
        delivery - the newly arrived delivery on this link.
        Throws:
        Exception - if an error occurs while processing the new Delivery.
      • commit

        void commit​(LocalTransactionId txnId)
             throws Exception
        Handle work necessary on commit of transacted resources associated with this Link instance.
        Parameters:
        txnId - The Transaction ID being committed.
        Throws:
        Exception - if an error occurs while performing the commit.
      • rollback

        void rollback​(LocalTransactionId txnId)
               throws Exception
        Handle work necessary on rollback of transacted resources associated with this Link instance.
        Parameters:
        txnId - The Transaction ID being rolled back.
        Throws:
        Exception - if an error occurs while performing the rollback.
      • getDestination

        ActiveMQDestination getDestination()
        Returns:
        the ActiveMQDestination that this link is servicing.
      • setDestination

        void setDestination​(ActiveMQDestination destination)
        Sets the ActiveMQDestination that this link will be servicing.
        Parameters:
        destination - the ActiveMQDestination that this link services.
      • addCloseAction

        void addCloseAction​(Runnable action)
        Adds a new Runnable that is called on close of this link.
        Parameters:
        action - a Runnable that will be executed when the link closes or detaches.