Interface ChannelPoolInitializer

All Known Implementing Classes:
ChannelInitializer
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 ChannelPoolInitializer
Initializes a channel before consumers or producers are created.
Since:
5.10.0
Author:
James Kleeh
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    initialize(com.rabbitmq.client.Channel channel, String name)
    Do any work with a channel.
  • Method Details

    • initialize

      void initialize(com.rabbitmq.client.Channel channel, String name) throws IOException
      Do any work with a channel.
      Parameters:
      channel - The channel to use
      name - The name of the channel pool, like configured under rabbitmq.servers
      Throws:
      IOException - If any error occurs