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.DefaultConsumer
Internal implementation of a Consumer that receives messages on the reply
queue and calls
RabbitRpcClient.processResponseForRequest(String, byte[]) of its
client.- Author:
- Michael Röder (roeder@informatik.uni-leipzig.de)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RabbitRpcClientThe client for which this instance is acting as consumer. -
Constructor Summary
ConstructorsConstructorDescriptionRabbitRpcClientConsumer(com.rabbitmq.client.Channel channel, RabbitRpcClient client) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleDelivery(String consumerTag, com.rabbitmq.client.Envelope envelope, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body) Methods inherited from class com.rabbitmq.client.DefaultConsumer
getChannel, getConsumerTag, handleCancel, handleCancelOk, handleConsumeOk, handleRecoverOk, handleShutdownSignal
-
Field Details
-
client
The client for which this instance is acting as consumer.
-
-
Constructor Details
-
RabbitRpcClientConsumer
Constructor.- Parameters:
channel- channel from which the messages are receivedclient- the client for which this instance is acting as consumer
-
-
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:
handleDeliveryin interfacecom.rabbitmq.client.Consumer- Overrides:
handleDeliveryin classcom.rabbitmq.client.DefaultConsumer- Throws:
IOException
-