org.springframework.amqp.rabbit.connection
Class SimpleConnection
java.lang.Object
org.springframework.amqp.rabbit.connection.SimpleConnection
- All Implemented Interfaces:
- Connection
public class SimpleConnection
- extends Object
- implements Connection
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleConnection
public SimpleConnection(com.rabbitmq.client.Connection delegate)
createChannel
public com.rabbitmq.client.Channel createChannel(boolean transactional)
throws IOException
- Description copied from interface:
Connection
- Create a new channel, using an internally allocated channel number.
- Specified by:
createChannel
in interface Connection
- Parameters:
transactional
- TODO
- Returns:
- a new channel descriptor, or null if none is available
- Throws:
IOException
- if an I/O problem is encountered
close
public void close()
throws IOException
- Description copied from interface:
Connection
- 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.
- Specified by:
close
in interface Connection
- Throws:
IOException
- if an I/O problem is encountered
Copyright © 2010. All Rights Reserved.