|
Spring AMQP | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ConnectionFactoryUtils.ResourceFactory
Callback interface for resource creation. Serving as argument for the doGetTransactionalChannel
method.
Method Summary | |
---|---|
com.rabbitmq.client.Channel |
createChannel(Connection con)
Create a new RabbitMQ Session for registration with a RabbitResourceHolder. |
Connection |
createConnection()
Create a new RabbitMQ Connection for registration with a RabbitResourceHolder. |
com.rabbitmq.client.Channel |
getChannel(RabbitResourceHolder holder)
Fetch an appropriate Channel from the given RabbitResourceHolder. |
Connection |
getConnection(RabbitResourceHolder holder)
Fetch an appropriate Connection from the given RabbitResourceHolder. |
boolean |
isSynchedLocalTransactionAllowed()
Return whether to allow for a local RabbitMQ transaction that is synchronized with a Spring-managed transaction (where the main transaction might be a JDBC-based one for a specific DataSource, for example), with the RabbitMQ transaction committing right after the main transaction. |
Method Detail |
---|
com.rabbitmq.client.Channel getChannel(RabbitResourceHolder holder)
holder
- the RabbitResourceHolder
null
if none foundConnection getConnection(RabbitResourceHolder holder)
holder
- the RabbitResourceHolder
null
if none foundConnection createConnection() throws IOException
IOException
- if thrown by RabbitMQ API methodscom.rabbitmq.client.Channel createChannel(Connection con) throws IOException
con
- the RabbitMQ Connection to create a Channel for
IOException
- if thrown by RabbitMQ API methodsboolean isSynchedLocalTransactionAllowed()
|
Spring AMQP | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |