Annotation Interface PulsarReader
@Target({TYPE,METHOD,ANNOTATION_TYPE})
@Retention(RUNTIME)
@MessageMapping
@Documented
public @interface PulsarReader
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe unique identifier of the container for this reader.The bean name or a SpEL expression that resolves to aPulsarReaderReaderBuilderCustomizer
to use to configure the reader.org.apache.pulsar.common.schema.SchemaType
Pulsar schema type for this listener.MessageId
for this reader to start from.String[]
Topics to listen to.
-
Element Details
-
id
String idThe unique identifier of the container for this reader.If none is specified an auto-generated id is used.
SpEL
#{...}
and property placeholders${...}
are supported.- Returns:
- the id of the container for this reader
- See Also:
- Default:
- ""
-
schemaType
org.apache.pulsar.common.schema.SchemaType schemaTypePulsar schema type for this listener.- Returns:
- the
schemaType
for this listener
- Default:
- NONE
-
startMessageId
String startMessageIdMessageId
for this reader to start from.- Returns:
- starting message id - earliest or latest.
- Default:
- ""
-
topics
String[] topicsTopics to listen to.- Returns:
- a comma separated list of topics to listen from.
- Default:
- {}
-
beanRef
String beanRef- Default:
- "__listener"
-
containerFactory
String containerFactory- Default:
- ""
-
autoStartup
String autoStartup- Default:
- ""
-
readerCustomizer
String readerCustomizerThe bean name or a SpEL expression that resolves to aPulsarReaderReaderBuilderCustomizer
to use to configure the reader.- Returns:
- the bean name or empty string to not configure the reader.
- Default:
- ""
-