Class PulsarListenerEndpointAdapter
java.lang.Object
org.springframework.pulsar.config.PulsarListenerEndpointAdapter
- All Implemented Interfaces:
ListenerEndpoint<PulsarMessageListenerContainer>,PulsarListenerEndpoint
Adapter to avoid having to implement all methods.
- Author:
- Soby Chacko, Alexander Preuß
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the autoStartup for this endpoint's container.Return the concurrency for this endpoint's container.getId()Return the id of this endpoint.org.apache.pulsar.common.schema.SchemaTypeReturn the schema type for this endpoint's container.Return the subscription name for this endpoint's container.org.apache.pulsar.client.api.SubscriptionTypeReturn the subscription type for this endpoint's container.Return the topic pattern for this endpoint's container.Return the topics for this endpoint's container.booleanvoidsetupListenerContainer(PulsarMessageListenerContainer listenerContainer, MessageConverter messageConverter) Setup the specified message listener container with the model defined by this endpoint.
-
Constructor Details
-
PulsarListenerEndpointAdapter
public PulsarListenerEndpointAdapter()
-
-
Method Details
-
getId
Description copied from interface:ListenerEndpointReturn the id of this endpoint.- Specified by:
getIdin interfaceListenerEndpoint<PulsarMessageListenerContainer>- Returns:
- the id of this endpoint. The id can be further qualified when the endpoint is resolved against its actual listener container.
- See Also:
-
getSubscriptionName
Description copied from interface:ListenerEndpointReturn the subscription name for this endpoint's container.- Specified by:
getSubscriptionNamein interfaceListenerEndpoint<PulsarMessageListenerContainer>- Returns:
- the subscription name.
-
getSubscriptionType
public org.apache.pulsar.client.api.SubscriptionType getSubscriptionType()Description copied from interface:ListenerEndpointReturn the subscription type for this endpoint's container.- Specified by:
getSubscriptionTypein interfaceListenerEndpoint<PulsarMessageListenerContainer>- Returns:
- the subscription type.
-
getTopics
Description copied from interface:ListenerEndpointReturn the topics for this endpoint's container.- Specified by:
getTopicsin interfaceListenerEndpoint<PulsarMessageListenerContainer>- Returns:
- the topics.
-
getTopicPattern
Description copied from interface:ListenerEndpointReturn the topic pattern for this endpoint's container.- Specified by:
getTopicPatternin interfaceListenerEndpoint<PulsarMessageListenerContainer>- Returns:
- the topic pattern.
-
getAutoStartup
Description copied from interface:ListenerEndpointReturn the autoStartup for this endpoint's container.- Specified by:
getAutoStartupin interfaceListenerEndpoint<PulsarMessageListenerContainer>- Returns:
- the autoStartup.
-
setupListenerContainer
public void setupListenerContainer(PulsarMessageListenerContainer listenerContainer, MessageConverter messageConverter) Description copied from interface:ListenerEndpointSetup 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
queuesand themessageListenerto use but an implementation may override any default setting that was already set.- Specified by:
setupListenerContainerin interfaceListenerEndpoint<PulsarMessageListenerContainer>- Parameters:
listenerContainer- the listener container to configuremessageConverter- the message converter - can be null
-
isBatchListener
public boolean isBatchListener()- Specified by:
isBatchListenerin interfacePulsarListenerEndpoint
-
getSchemaType
public org.apache.pulsar.common.schema.SchemaType getSchemaType()Description copied from interface:ListenerEndpointReturn the schema type for this endpoint's container.- Specified by:
getSchemaTypein interfaceListenerEndpoint<PulsarMessageListenerContainer>- Returns:
- the schema type.
-
getConsumerProperties
- Specified by:
getConsumerPropertiesin interfacePulsarListenerEndpoint
-
getConcurrency
Description copied from interface:ListenerEndpointReturn the concurrency for this endpoint's container.- Specified by:
getConcurrencyin interfaceListenerEndpoint<PulsarMessageListenerContainer>- Returns:
- the concurrency.
-
getAckMode
- Specified by:
getAckModein interfacePulsarListenerEndpoint
-