Class RabbitMqConsumer

java.lang.Object
com.rabbitmq.client.DefaultConsumer
io.camunda.connector.rabbitmq.inbound.RabbitMqConsumer
All Implemented Interfaces:
com.rabbitmq.client.Consumer

public class RabbitMqConsumer extends com.rabbitmq.client.DefaultConsumer
  • Constructor Summary

    Constructors
    Constructor
    Description
    RabbitMqConsumer(com.rabbitmq.client.Channel channel, io.camunda.connector.api.inbound.InboundConnectorContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleCancel(String consumerTag)
     
    void
    handleDelivery(String consumerTag, com.rabbitmq.client.Envelope envelope, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body)
     
    void
    handleShutdownSignal(String consumerTag, com.rabbitmq.client.ShutdownSignalException sig)
     

    Methods inherited from class com.rabbitmq.client.DefaultConsumer

    getChannel, getConsumerTag, handleCancelOk, handleConsumeOk, handleRecoverOk

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RabbitMqConsumer

      public RabbitMqConsumer(com.rabbitmq.client.Channel channel, io.camunda.connector.api.inbound.InboundConnectorContext context)
  • Method Details

    • 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
    • handleCancel

      public void handleCancel(String consumerTag)
      Specified by:
      handleCancel in interface com.rabbitmq.client.Consumer
      Overrides:
      handleCancel in class com.rabbitmq.client.DefaultConsumer
    • 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