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.
Author:
Mark Fisher, Gary Russell
  • Method Summary

    Modifier and Type
    Method
    Description
    doInRabbit(com.rabbitmq.client.Channel channel)
    Execute any number of operations against the supplied RabbitMQ Channel, possibly returning a result.
  • Method Details

    • doInRabbit

      @Nullable T doInRabbit(com.rabbitmq.client.Channel channel) throws Exception
      Execute any number of operations against the supplied RabbitMQ Channel, possibly returning a result.
      Parameters:
      channel - The channel.
      Returns:
      The result.
      Throws:
      Exception - Not sure what else Rabbit Throws