public static interface ConnectionFactoryUtils.ResourceFactory
doGetTransactionalChannel
method.Modifier and Type | Method and Description |
---|---|
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.
|
com.rabbitmq.client.Channel getChannel(RabbitResourceHolder holder)
holder
- the RabbitResourceHoldernull
if none foundConnection getConnection(RabbitResourceHolder holder)
holder
- the RabbitResourceHoldernull
if none foundConnection createConnection() throws java.io.IOException
java.io.IOException
- if thrown by RabbitMQ API methodscom.rabbitmq.client.Channel createChannel(Connection con) throws java.io.IOException
con
- the RabbitMQ Connection to create a Channel forjava.io.IOException
- if thrown by RabbitMQ API methodsboolean isSynchedLocalTransactionAllowed()