Example usage for com.rabbitmq.client.impl AMQCommand handleFrame

List of usage examples for com.rabbitmq.client.impl AMQCommand handleFrame

Introduction

In this page you can find the example usage for com.rabbitmq.client.impl AMQCommand handleFrame.

Prototype

public boolean handleFrame(Frame f) throws IOException 

Source Link

Usage

From source file:de.htwk_leipzig.bis.connection.handshake.clientRewrite.AMQChannel.java

License:Mozilla Public License

/**
 * Private API - When the Connection receives a Frame for this channel, it
 * passes it to this method.// w ww  . j a v a 2  s  .  c  o  m
 * 
 * @param frame
 *            the incoming frame
 * @throws IOException
 *             if an error is encountered
 */
public void handleFrame(Frame frame) throws IOException {
    AMQCommand command = _command;
    if (command.handleFrame(frame)) { // a complete command has rolled off
        // the assembly line
        _command = new AMQCommand(); // prepare for the next one
        handleCompleteInboundCommand(command);
    }
}