Interface RabbitOperations.OperationsCallback<T>
- Type Parameters:
T
- the type the callback returns.
- Enclosing interface:
- RabbitOperations
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback for using the same channel for multiple RabbitTemplate
operations.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiondoInRabbit
(RabbitOperations operations) Execute any number of operations using a dedicatedChannel
as long as those operations are performed on the template argument and on the calling thread.
-
Method Details
-
doInRabbit
Execute any number of operations using a dedicatedChannel
as long as those operations are performed on the template argument and on the calling thread. The channel will be physically closed when the callback exits.- Parameters:
operations
- The operations.- Returns:
- The result.
-