@Target(value={METHOD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented public @interface RabbitSender
RabbitClient to override the parameters specified in RabbitClient for a particular method.
I.e. the RabbitClient is used to specify defaults for all methods in the interface, and the RabbitSender is used to fine-tune the metadata for a particular method.RabbitClient| Modifier and Type | Optional Element and Description |
|---|---|
String |
exchange
Specifies the exchange for
RabbitTemplate to send the messages to. |
String |
exchangeGenerator
The bean name of the custom
ExchangeGenerator to use. |
String |
messagePostProcessor
The bean name of the custom
MessagePostProcessor
to use. |
String |
routingKey
Specifies the routing key for
RabbitTemplate to send the messages to. |
String |
routingKeyGenerator
The bean name of the custom
RoutingKeyGenerator to use. |
public abstract String exchange
RabbitTemplate to send the messages to.
If not specified, the default exchange is used.RabbitClient.exchange() (if any)RabbitClient.exchange()public abstract String exchangeGenerator
ExchangeGenerator to use.
Mutually exclusive with the exchange() attribute.
ExchangeGenerator bean to use for sending messages.RabbitClient.exchangeGenerator()public abstract String routingKey
RabbitTemplate to send the messages to.
If not specified, the default routing key is used.RabbitClient.routingKey() (if any)RabbitClient.routingKey()public abstract String routingKeyGenerator
RoutingKeyGenerator to use.
Mutually exclusive with the routingKey() attribute.
RoutingKeyGenerator bean to use for sending messages.RabbitClient.routingKeyGenerator()public abstract String messagePostProcessor
MessagePostProcessor
to use.MessagePostProcessor to use before sending messages. Overrides the one defined in RabbitClient.messagePostProcessor() (if any)RabbitClient.messagePostProcessor()Copyright © 2019. All rights reserved.