Example usage for com.rabbitmq.client RpcServer close

List of usage examples for com.rabbitmq.client RpcServer close

Introduction

In this page you can find the example usage for com.rabbitmq.client RpcServer close.

Prototype

public void close() throws IOException 

Source Link

Document

Public API - cancels the consumer, thus deleting the queue, if it was a temporary queue, and marks the RpcServer as closed.

Usage

From source file:com.adr.datatest.rabbitmq.MQTestServer.java

private static void close(RpcServer resource) {
    try {//from  w  w  w  .j  a  v  a 2 s.c o m
        if (resource != null) {
            resource.close();
        }
    } catch (IOException ex) {
        Logger.getLogger(MQTestServer.class.getName()).log(Level.WARNING, null, ex);
    }
}