Class AmqpAcquisition.AmqpConsumer

  • All Implemented Interfaces:
    com.rabbitmq.client.Consumer
    Enclosing class:
    AmqpAcquisition

    private class AmqpAcquisition.AmqpConsumer
    extends com.rabbitmq.client.DefaultConsumer
    • Field Detail

    • Constructor Detail

      • AmqpConsumer

        public AmqpConsumer​(com.rabbitmq.client.Channel channel,
                            String name)
    • Method Detail

      • handleDelivery

        public void handleDelivery​(String consumerTag,
                                   com.rabbitmq.client.Envelope envelope,
                                   com.rabbitmq.client.AMQP.BasicProperties properties,
                                   byte[] body)
                            throws IOException
        Specified by:
        handleDelivery in interface com.rabbitmq.client.Consumer
        Overrides:
        handleDelivery in class com.rabbitmq.client.DefaultConsumer
        Throws:
        IOException
      • handleShutdownSignal

        public void handleShutdownSignal​(String consumerTag,
                                         com.rabbitmq.client.ShutdownSignalException sig)
        Specified by:
        handleShutdownSignal in interface com.rabbitmq.client.Consumer
        Overrides:
        handleShutdownSignal in class com.rabbitmq.client.DefaultConsumer