@Target(value={TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented @Component public @interface RabbitClient
EnableRabbitRPC annotation to be present on a Configuration class.RabbitSender| Modifier and Type | Optional Element and Description |
|---|---|
String |
exchange
The name of the
Exchange to used instead of the default one. |
String |
exchangeGenerator
The bean name of the custom
ExchangeGenerator to use. |
String |
messagePostProcessor
The bean name of the custom
MessagePostProcessor
to use. |
String |
routingKey
The routing key used when sending messages.
|
String |
routingKeyGenerator
The bean name of the custom
RoutingKeyGenerator to use. |
public abstract String exchange
Exchange to used instead of the default one.
If also defined in RabbitSender.exchange(), the latter one takes precedence.RabbitSender.exchange()public abstract String exchangeGenerator
ExchangeGenerator to use.
Mutually exclusive with the exchange() attribute.
ExchangeGenerator bean to use for sending messages.RabbitSender.exchangeGenerator()public abstract String routingKey
RabbitSender.routingKey(), the latter one takes precedence.RabbitSender.routingKey()public abstract String routingKeyGenerator
RoutingKeyGenerator to use.
Mutually exclusive with the routingKey() attribute.
RoutingKeyGenerator bean to use for sending messages.RabbitSender.routingKeyGenerator()public abstract String messagePostProcessor
MessagePostProcessor
to use.
If also defined in RabbitSender.messagePostProcessor(), the latter one takes precedence.MessagePostProcessor to use before sending messagesRabbitSender.messagePostProcessor()Copyright © 2019. All rights reserved.