Interface PulsarReaderEndpoint<C extends PulsarMessageReaderContainer>
- Type Parameters:
C
- reader listener container type.
- All Known Implementing Classes:
AbstractPulsarReaderEndpoint
,MethodPulsarReaderEndpoint
public interface PulsarReaderEndpoint<C extends PulsarMessageReaderContainer>
Model for a Pulsar Reader endpoint. Can be used against a
PulsarReaderConfigurer
to register
endpoints programmatically.- Author:
- Soby Chacko
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Return the id of this endpoint.org.apache.pulsar.common.schema.SchemaType
Return the schema type for this endpoint's container.org.apache.pulsar.client.api.MessageId
Return the topics for this endpoint's container.void
setupListenerContainer
(C listenerContainer, MessageConverter messageConverter) Setup the specified message listener container with the model defined by this endpoint.
-
Method Details
-
getId
Return the id of this endpoint.- Returns:
- the id of this endpoint. The id can be further qualified when the endpoint is resolved against its actual listener container.
- See Also:
-
getTopics
Return the topics for this endpoint's container.- Returns:
- the topics.
-
getSchemaType
org.apache.pulsar.common.schema.SchemaType getSchemaType()Return the schema type for this endpoint's container.- Returns:
- the schema type.
-
setupListenerContainer
Setup the specified message listener container with the model defined by this endpoint.This endpoint must provide the requested missing option(s) of the specified container to make it usable. Usually, this is about setting the
queues
and themessageListener
to use but an implementation may override any default setting that was already set.- Parameters:
listenerContainer
- the listener container to configuremessageConverter
- message converter used
-
getAutoStartup
-
getStartMessageId
org.apache.pulsar.client.api.MessageId getStartMessageId()
-