Annotation Interface EnableMessageLogReceiverEndpoint
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe name of the message-log channel. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe name of the registered MessageLogReceiverEndpoint bean.Class<? extends MessageLog>Selector used to select one of possibly multiple availableMessageLogReceiverEndpointFactoryinstances used to create theMessageLogReceiverEndpoint.Specifies where to start reading from the message log.
-
Element Details
-
channelName
String channelNameThe name of the message-log channel.Resolving placeholders like "${my.channel.name}" is supported for this property.
- Returns:
- channel name
-
-
-
name
String nameThe name of the registered MessageLogReceiverEndpoint bean.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 "MessageLogReceiverEndpoint" is appended. A channel named "my-channel" will therefore result in a bean name "myChannelMessageLogReceiverEndpoint".- Returns:
- bean name
- Default:
- ""
-
startFrom
String startFromSpecifies where to start reading from the message log.Possible Values:
- HORIZON (default): Start reading from the oldest available message
- LATEST: Start reading from the latest message
- Returns:
- LATEST or HORIZON
- Default:
- "HORIZON"
-
selector
Class<? extends MessageLog> selectorSelector used to select one of possibly multiple availableMessageLogReceiverEndpointFactoryinstances used to create theMessageLogReceiverEndpoint.Example: the KafkaMessageLogReceiverEndpointFactory matches both
MessageLog.classand Kafka.class. The following usage of the annotation is selecting the KafkaMessageLogReceiverEndpointFactory using the more specific Kafka selector:@Configuration @EnableMessageLogReceiverEndpoint( channelName = "some-log", selector = Kafka.class) class MyExampleConfiguration { }- Returns:
- MessageLog selector class
- Default:
- de.otto.synapse.channel.selector.MessageLog.class
-