List of usage examples for com.rabbitmq.client Channel exchangeDeclarePassive
Exchange.DeclareOk exchangeDeclarePassive(String name) throws IOException;
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*/ }); }