Package de.otto.synapse.annotation
Annotation Type EnableMessageSenderEndpoint
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Import({MessageSenderEndpointBeanRegistrar.class,SynapseAutoConfiguration.class})
@Repeatable(EnableMessageSenderEndpoints.class)
public @interface EnableMessageSenderEndpoint
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringchannelNameThe name of the message queue.java.lang.Class<? extends Selector>selectorSelector used to select one of possibly multiple availableMessageSenderEndpointFactoryinstances. -
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description MessageFormatmessageFormatTheMessageFormatfor the message to be sent.java.lang.StringnameThe name of the registeredMessageSenderEndpointbean.
-
Element Details
-
channelName
java.lang.String channelNameThe name of the message queue.Resolving placeholders like "${my.channel.name}" is supported for this property.
- Returns:
- channel name
-
selector
java.lang.Class<? extends Selector> selectorSelector used to select one of possibly multiple availableMessageSenderEndpointFactoryinstances.Example: the SqsMessageSenderEndpointFactory matches both
MessageQueue.classand Sqs.class. The following usage of the annotation is selecting the SqsMessageSenderEndpointFactory using the more specific SQS selector class:@Configuration @EnableMessageSenderEndpoint( channelName = "some-sqs-queue", selector = Sqs.class) class MyExampleConfiguration { }- Returns:
- Selector class
-
-
-
name
java.lang.String nameThe name of the registeredMessageSenderEndpointbean.If
#nameis not set, the name of the bean is derived from the name of the message channel. The name is constructed by tranforming hyphenated variable naming convention, e.g., "my-channel" into the Spring bean naming convention, e.g., "myChannel". After this conversion, the string "MessageQueueSenderEndpoint" is appended. A channel named "my-channel" will therefore result in a bean name "myChannelMessageQueueSenderEndpoint".- Returns:
- bean name
- Default:
- ""
-
messageFormat
MessageFormat messageFormatTheMessageFormatfor the message to be sent. Default: V1- Returns:
- message format
- Default:
- V1
-