Spring AMQP

org.springframework.amqp.rabbit.connection
Interface Connection

All Known Subinterfaces:
ConnectionProxy
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.
 boolean isOpen()
          Flag to indicate the status of the connection.
 

Method Detail

createChannel

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

Parameters:
transactional - true if the channel should support transactions
Returns:
a new channel descriptor, or null if none is available
Throws:
AmqpException - if an I/O problem is encountered

close

void close()
           throws AmqpException
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:
AmqpException - if an I/O problem is encountered

isOpen

boolean isOpen()
Flag to indicate the status of the connection.

Returns:
true if the connection is open

Spring AMQP

Copyright © 2011. All Rights Reserved.