Interface Declaration.ExchangeDeclaration

All Known Implementing Classes:
ExplicitExchange
Enclosing class:
Declaration
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 Declaration.ExchangeDeclaration
Interface that allows exchange declaration to be composed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    declare(com.rabbitmq.client.Channel ch)
    Declare the exchange.
    default String
    The name of the exchange that was declared.
  • Method Details

    • declare

      void declare(com.rabbitmq.client.Channel ch) throws Exception
      Declare the exchange.
      Parameters:
      ch - the channel to use to declare the exchange.
      Throws:
      Exception
    • name

      default String name()
      The name of the exchange that was declared.