Package org.hobbit.core.rabbit
Class RabbitRpcClient.RabbitRpcClientConsumer
- java.lang.Object
-
- com.rabbitmq.client.DefaultConsumer
-
- org.hobbit.core.rabbit.RabbitRpcClient.RabbitRpcClientConsumer
-
- All Implemented Interfaces:
com.rabbitmq.client.Consumer
- Enclosing class:
- RabbitRpcClient
protected static class RabbitRpcClient.RabbitRpcClientConsumer extends com.rabbitmq.client.DefaultConsumerInternal implementation of a Consumer that receives messages on the reply queue and callsRabbitRpcClient.processResponseForRequest(String, byte[])of itsclient.- Author:
- Michael Röder (roeder@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description private RabbitRpcClientclientThe client for which this instance is acting as consumer.
-
Constructor Summary
Constructors Constructor Description RabbitRpcClientConsumer(com.rabbitmq.client.Channel channel, RabbitRpcClient client)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleDelivery(String consumerTag, com.rabbitmq.client.Envelope envelope, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body)
-
-
-
Field Detail
-
client
private RabbitRpcClient client
The client for which this instance is acting as consumer.
-
-
Constructor Detail
-
RabbitRpcClientConsumer
public RabbitRpcClientConsumer(com.rabbitmq.client.Channel channel, RabbitRpcClient client)Constructor.- Parameters:
channel- channel from which the messages are receivedclient- the client for which this instance is acting as consumer
-
-
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:
handleDeliveryin interfacecom.rabbitmq.client.Consumer- Overrides:
handleDeliveryin classcom.rabbitmq.client.DefaultConsumer- Throws:
IOException
-
-