Package de.otto.synapse.channel.selector
Interface Selector
- All Known Subinterfaces:
MessageLog,MessageQueue
public interface Selector
Specifies the implementation used for
message senders
in case of annotation-driven configuration using EnableMessageSenderEndpoint.
In some cases, multiple implementations of the MessageSenderEndpoint like, for example SQS and Kinesis senders,
are available in any Synapse service. If the EnableMessageSenderEndpoint
annotation is used, the
TODO: support selectors for message receiver annotations
As soon as there are multiple implementations of MessageLogReceiverEndpoint
and/or MessageQueueReceiverEndpoint available in Synapse, selectors
must also supported by EnableMessageQueueReceiverEndpoint, EnableEventSource
and the (not yet available) EnableMessageLogReceiverEndpoint annotations.
Example:
@Configuration
@EnableMessageSenderEndpoint channelName="my-channel", selector=MessageQueue.class
- See Also:
MessageLog,MessageQueue,EnableMessageSenderEndpoint