public class MessagePartitionStrategy<T> extends AbstractPartitionStrategy<T,org.springframework.messaging.Message<?>>
PartitionStrategy
which is used to provide a generic partitioning support using Spring SpEL.Constructor and Description |
---|
MessagePartitionStrategy(org.springframework.expression.Expression expression,
org.springframework.expression.spel.support.StandardEvaluationContext evaluationContext)
Instantiates a new message partition strategy with
EvaluationContext . |
MessagePartitionStrategy(java.lang.String expression,
org.springframework.expression.spel.support.StandardEvaluationContext evaluationContext)
Instantiates a new message partition strategy with
EvaluationContext . |
MessagePartitionStrategy(java.lang.String expression,
org.springframework.expression.spel.support.StandardEvaluationContext evaluationContext,
org.springframework.expression.ExpressionParser expressionParser)
Instantiates a new message partition strategy with
EvaluationContext . |
getPartitionKeyResolver, getPartitionResolver
public MessagePartitionStrategy(org.springframework.expression.Expression expression, org.springframework.expression.spel.support.StandardEvaluationContext evaluationContext)
EvaluationContext
.expression
- the expressionevaluationContext
- the evaluation contextpublic MessagePartitionStrategy(java.lang.String expression, org.springframework.expression.spel.support.StandardEvaluationContext evaluationContext)
EvaluationContext
.expression
- the expressionevaluationContext
- the evaluation contextpublic MessagePartitionStrategy(java.lang.String expression, org.springframework.expression.spel.support.StandardEvaluationContext evaluationContext, org.springframework.expression.ExpressionParser expressionParser)
EvaluationContext
.expression
- the expressionevaluationContext
- the evaluation contextexpressionParser
- the expression parser