com.rabbitmq.client
Interface ReturnListener


public interface ReturnListener

Implement this interface in order to be notified of failed deliveries when basicPublish is called with "mandatory" or "immediate" flags set.

See Also:
Channel.basicPublish(java.lang.String, java.lang.String, com.rabbitmq.client.AMQP.BasicProperties, byte[])

Method Summary
 void handleBasicReturn(int replyCode, java.lang.String replyText, java.lang.String exchange, java.lang.String routingKey, AMQP.BasicProperties properties, byte[] body)
           
 

Method Detail

handleBasicReturn

void handleBasicReturn(int replyCode,
                       java.lang.String replyText,
                       java.lang.String exchange,
                       java.lang.String routingKey,
                       AMQP.BasicProperties properties,
                       byte[] body)
                       throws java.io.IOException
Throws:
java.io.IOException