Interface ChannelCallback<T>
-
- Type Parameters:
T- the type the callback returns.
- 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 interface ChannelCallback<T>Basic callback for use in RabbitTemplate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TdoInRabbit(com.rabbitmq.client.Channel channel)Execute any number of operations against the supplied RabbitMQChannel, possibly returning a result.
-
-
-
Method Detail
-
doInRabbit
@Nullable T doInRabbit(com.rabbitmq.client.Channel channel) throws java.lang.Exception
Execute any number of operations against the supplied RabbitMQChannel, possibly returning a result.- Parameters:
channel- The channel.- Returns:
- The result.
- Throws:
java.lang.Exception- Not sure what else Rabbit Throws
-
-