Interface ConsumerBindingMessageInterceptorFactory

All Superinterfaces:
org.springframework.core.Ordered

public interface ConsumerBindingMessageInterceptorFactory extends org.springframework.core.Ordered
Factory for creating binding-specific ConsumerBindingMessageInterceptor instances.
See Also:
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    createIfNecessary(String binderType, org.springframework.cloud.stream.binder.ConsumerProperties consumerProperties)
    Creates an interceptor instance for the specified binding, or null if not needed.

    Methods inherited from interface org.springframework.core.Ordered

    getOrder
  • Method Details

    • createIfNecessary

      @Nullable ConsumerBindingMessageInterceptor createIfNecessary(String binderType, org.springframework.cloud.stream.binder.ConsumerProperties consumerProperties)
      Creates an interceptor instance for the specified binding, or null if not needed. All filtering and configuration logic should happen in this method.
      Parameters:
      binderType - the binder type (e.g., "solace", "rabbit").
      consumerProperties - the consumer binding properties.
      Returns:
      a configured interceptor instance, or null if this interceptor doesn't apply.