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 Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String FALSE  
      static java.lang.String TRUE  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] admins
      Return a list of admin bean names that should declare this component.
      Argument[] arguments  
      java.lang.String autoDelete  
      java.lang.String declare  
      java.lang.String delayed  
      java.lang.String durable  
      java.lang.String ignoreDeclarationExceptions  
      java.lang.String internal  
      java.lang.String name  
      java.lang.String type
      The exchange type, including custom.
      java.lang.String value  
    • Field Detail

      • TRUE

        static final java.lang.String TRUE
      • FALSE

        static final java.lang.String FALSE
    • Element Detail

      • value

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

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

        java.lang.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

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

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

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

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

        java.lang.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

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

        java.lang.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:
        {}