@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@Import(value={MessageLogReceiverEndpointBeanRegistrar.class,MessageLogReceiverEndpointAutoConfiguration.class})
@Repeatable(value=EnableMessageLogReceiverEndpoints.class)
public @interface EnableMessageLogReceiverEndpoint
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
channelName
The name of the message-log channel.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
name
The name of the registered MessageLogReceiverEndpoint bean.
|
java.lang.Class<? extends MessageLog> |
selector
Selector used to select one of possibly multiple available
MessageLogReceiverEndpointFactory instances used to
create the MessageLogReceiverEndpoint. |
java.lang.String |
startFrom
Specifies where to start reading from the message log.
|
public abstract java.lang.String channelName
Resolving placeholders like "${my.channel.name}" is supported for this property.
public abstract java.lang.String name
If #name is 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".
public abstract java.lang.String startFrom
Possible Values:
public abstract java.lang.Class<? extends MessageLog> selector
MessageLogReceiverEndpointFactory instances used to
create the MessageLogReceiverEndpoint.
Example: the KafkaMessageLogReceiverEndpointFactory matches both MessageLog.class
and 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 {
}