Example usage for com.rabbitmq.client Channel exchangeDeclarePassive

List of usage examples for com.rabbitmq.client Channel exchangeDeclarePassive

Introduction

In this page you can find the example usage for com.rabbitmq.client Channel exchangeDeclarePassive.

Prototype

Exchange.DeclareOk exchangeDeclarePassive(String name) throws IOException;

Source Link

Document

Declare an exchange passively; that is, check if the named exchange exists.

Usage

From source file:vn.com.uet.performance.rabbitmq.MulticastParams.java

License:Open Source License

private static boolean exchangeExists(Connection connection, final String exchangeName) throws IOException {
    return exists(connection, new Checker() {
        public void check(Channel ch) throws IOException {
            ch.exchangeDeclarePassive(exchangeName);
        }/*from  w w  w . ja va2 s.  c o  m*/
    });
}