public class KafkaExpressionEvaluatingInterceptor extends Object implements org.springframework.messaging.support.ChannelInterceptor
Modifier and Type | Field and Description |
---|---|
static String |
MESSAGE_KEY_HEADER
Name for the evaluated message key header.
|
Constructor and Description |
---|
KafkaExpressionEvaluatingInterceptor(org.springframework.expression.Expression messageKeyExpression,
org.springframework.expression.EvaluationContext evaluationContext)
Construct an instance with the provided expressions and evaluation context.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.messaging.Message<?> |
preSend(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel) |
public static final String MESSAGE_KEY_HEADER
public KafkaExpressionEvaluatingInterceptor(org.springframework.expression.Expression messageKeyExpression, org.springframework.expression.EvaluationContext evaluationContext)
messageKeyExpression
- the routing key expression.evaluationContext
- the evaluation context.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.