Spring AMQP

org.springframework.amqp.rabbit.connection
Interface Connection

All Known Implementing Classes:
SimpleConnection

public interface Connection

Author:
Dave Syer

Method Summary
 void close()
          Close this connection and all its channels with the AMQP.REPLY_SUCCESS close code and message 'OK'.
 com.rabbitmq.client.Channel createChannel(boolean transactional)
          Create a new channel, using an internally allocated channel number.
 

Method Detail

createChannel

com.rabbitmq.client.Channel createChannel(boolean transactional)
                                          throws IOException
Create a new channel, using an internally allocated channel number.

Parameters:
transactional - TODO
Returns:
a new channel descriptor, or null if none is available
Throws:
IOException - if an I/O problem is encountered

close

void close()
           throws IOException
Close this connection and all its channels with the AMQP.REPLY_SUCCESS close code and message 'OK'. Waits for all the close operations to complete.

Throws:
IOException - if an I/O problem is encountered

Spring AMQP

Copyright © 2010. All Rights Reserved.