'Send the Confirm.Select RPC method to RabbitMQ to enable delivery
confirmations on the channel. The only way to turn this off is to close
the channel and create a new one.
When the message is confirmed from RabbitMQ, the
on_delivery_confirmation method will be invoked passing in a Basic.Ack
or Basic.Nack method from RabbitMQ that will indicate which messages it
is confirming or rejecting.'

def enable_delivery_confirmations(self):

    LOGGER.info('Issuing    Confirm.Select    RPC    command')
    self._channel.confirm_delivery(self.on_delivery_confirmation)
