Class DataSenderImpl

    • Constructor Detail

      • DataSenderImpl

        protected DataSenderImpl​(RabbitQueue queue,
                                 int deliveryMode,
                                 int messageConfirmBuffer)
    • Method Detail

      • sendData

        public void sendData​(byte[] data)
                      throws IOException
        Description copied from interface: DataSender
        Send the given data to the queue.
        Specified by:
        sendData in interface DataSender
        Parameters:
        data - the data that should be sent
        Throws:
        IOException - if an exception occurs during the communication with the queue
      • sendData

        protected void sendData​(byte[] data,
                                com.rabbitmq.client.AMQP.BasicProperties.Builder probBuilder)
                         throws IOException
        Throws:
        IOException
      • sendData

        protected void sendData​(com.rabbitmq.client.AMQP.BasicProperties properties,
                                byte[] data)
                         throws IOException
        Throws:
        IOException
      • closeWhenFinished

        public void closeWhenFinished()
        Description copied from interface: DataSender
        A blocking method that closes the sender when its work is done, i.e., all messages have been consumed by receivers from the queue.
        Specified by:
        closeWhenFinished in interface DataSender