- Type Parameters:
T- the type the callback returns.
- Enclosing interface:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface RabbitOperations.OperationsCallback<T>
Callback for using the same channel for multiple RabbitTemplate operations.
doInRabbitExecute any number of operations using a dedicated
Channelas 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.
operations- The operations.
- The result.