Class AMQPFederationBaseSenderController

    • Method Detail

      • close

        public void close​(org.apache.qpid.proton.amqp.transport.ErrorCondition error)
        Description copied from interface: SenderController
        Called when the sender is being locally closed due to some error or forced shutdown due to resource deletion etc. The default implementation of this API does nothing in response to this call.
        Specified by:
        close in interface SenderController
        Parameters:
        error - The error condition that triggered the close.
      • selectOutgoingMessageWriter

        public MessageWriter selectOutgoingMessageWriter​(ProtonServerSenderContext sender,
                                                         org.apache.activemq.artemis.core.server.MessageReference reference)
        Description copied from interface: SenderController
        Controller selects a outgoing delivery writer that will handle the encoding and writing of the target Message carried in the given MessageReference. The selection process should take into account how the message pre-processing will mutate the outgoing message. The default implementation performs no caching of writers and should be overridden in subclasses to reduce GC churn, the default version is suitable for tests.
        Specified by:
        selectOutgoingMessageWriter in interface SenderController
        Parameters:
        sender - The server sender that will make use of the returned delivery context.
        reference - The message that must be sent using an outgoing context
        Returns:
        an MessageWriter to use when sending the message in the reference.