Annotation Type Exchange


  • @Target({})
    @Retention(RUNTIME)
    public @interface Exchange
    An exchange to which to bind a RabbitListener queue.
    Since:
    1.5
    Author:
    Gary Russell, Alex Panchenko
    • Field Detail

      • TRUE

        static final String TRUE
      • FALSE

        static final String FALSE
    • Element Detail

      • value

        @AliasFor("name")
        String value
        Returns:
        the exchange name.
        Default:
        ""
      • name

        @AliasFor("value")
        String name
        Returns:
        the exchange name.
        Since:
        2.0
        Default:
        ""
      • type

        String type
        The exchange type, including custom. Defaults to ExchangeTypes.DIRECT. If a custom exchange type is used the corresponding plugin is required on the broker.
        Returns:
        the exchange type.
        See Also:
        ExchangeTypes
        Default:
        "direct"
      • durable

        String durable
        Returns:
        false if the exchange is to be declared as non-durable.
        Default:
        "true"
      • autoDelete

        String autoDelete
        Returns:
        true if the exchange is to be declared as auto-delete.
        Default:
        "false"
      • internal

        String internal
        Returns:
        true if the exchange is to be declared as internal.
        Since:
        1.6
        Default:
        "false"
      • ignoreDeclarationExceptions

        String ignoreDeclarationExceptions
        Returns:
        true if the declaration exceptions should be ignored.
        Since:
        1.6
        Default:
        "false"
      • delayed

        String delayed
        Returns:
        true if the exchange is to be declared as an 'x-delayed-message' exchange. Requires the delayed message exchange plugin on the broker.
        Since:
        1.6.4
        Default:
        "false"
      • arguments

        Argument[] arguments
        Returns:
        the arguments to apply when declaring this exchange.
        Since:
        1.6
        Default:
        {}
      • declare

        String declare
        Returns:
        true if the admin(s), if present, should declare this component.
        Since:
        2.1
        Default:
        "true"
      • admins

        String[] admins
        Return a list of admin bean names that should declare this component. By default all admins will declare it
        Returns:
        the bean names
        Since:
        2.1
        Default:
        {}