Package org.springframework.pulsar.core
Interface ConsumerBuilderCustomizer<T>
- Type Parameters:
T
- The message payload type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface that can be implemented to customize the
ConsumerBuilder
that is used by the PulsarConsumerFactory
to create consumers.
When using Spring Boot autoconfiguration, any beans implementing this interface will be
used as default configuration by the DefaultPulsarConsumerFactory
and as such
will apply to all created consumers.
The consumer factory also supports passing in a specific instance of this callback when
creating a consumer
and as such the passed
in customizer only applies to the single created consumer.
- Author:
- Christophe Bornet
-
Method Summary
-
Method Details
-
customize
Customize theConsumerBuilder
.- Parameters:
consumerBuilder
- the builder to customize
-