Interface PulsarListenerConsumerBuilderCustomizer<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.

@FunctionalInterface public interface PulsarListenerConsumerBuilderCustomizer<T>
Callback interface that can be implemented by a bean to customize the ConsumerBuilder that is used to create the underlying Pulsar consumer used by a PulsarListener to receive messages.

Unlike the ConsumerBuilderCustomizer which is applied to all created consumer builders, this customizer is only applied to the individual consumer builder(s) of the @PulsarListener(s) it is associated with.

Author:
Chris Bono
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(org.apache.pulsar.client.api.ConsumerBuilder<T> consumerBuilder)
    Customize the ConsumerBuilder.
  • Method Details

    • customize

      void customize(org.apache.pulsar.client.api.ConsumerBuilder<T> consumerBuilder)
      Customize the ConsumerBuilder.
      Parameters:
      consumerBuilder - the builder to customize