Interface ProducerBindingMessageInterceptorFactory
- All Superinterfaces:
org.springframework.core.Ordered
public interface ProducerBindingMessageInterceptorFactory
extends org.springframework.core.Ordered
Factory for creating binding-specific
ProducerBindingMessageInterceptor instances.- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptioncreateIfNecessary(String binderType, org.springframework.cloud.stream.binder.ProducerProperties producerProperties) Creates an interceptor instance for the specified binding, ornullif not needed.Methods inherited from interface org.springframework.core.Ordered
getOrder
-
Method Details
-
createIfNecessary
@Nullable ProducerBindingMessageInterceptor createIfNecessary(String binderType, org.springframework.cloud.stream.binder.ProducerProperties producerProperties) Creates an interceptor instance for the specified binding, ornullif not needed. All filtering and configuration logic should happen in this method.- Parameters:
binderType- the binder type (e.g., "solace", "rabbit").producerProperties- the producer binding properties.- Returns:
- a configured interceptor instance, or
nullif this interceptor doesn't apply.
-