public class MessageCounterHandler
extends java.lang.Object
CounterRepository
.Modifier and Type | Field and Description |
---|---|
protected org.springframework.expression.EvaluationContext |
evaluationContext |
protected org.springframework.expression.Expression |
nameExpression |
protected org.springframework.expression.spel.standard.SpelExpressionParser |
spelExpressionParser |
Constructor and Description |
---|
MessageCounterHandler(CounterRepository counterRepository,
java.lang.String nameExpression) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
computeMetricName(org.springframework.messaging.Message<?> message) |
org.springframework.messaging.Message<?> |
process(org.springframework.messaging.Message<?> message) |
void |
setIntegrationEvaluationContext(org.springframework.expression.EvaluationContext evaluationContext) |
protected final org.springframework.expression.Expression nameExpression
protected final org.springframework.expression.spel.standard.SpelExpressionParser spelExpressionParser
protected org.springframework.expression.EvaluationContext evaluationContext
public MessageCounterHandler(CounterRepository counterRepository, java.lang.String nameExpression)
@ServiceActivator public org.springframework.messaging.Message<?> process(org.springframework.messaging.Message<?> message)
protected java.lang.String computeMetricName(org.springframework.messaging.Message<?> message)
public void setIntegrationEvaluationContext(org.springframework.expression.EvaluationContext evaluationContext)
setIntegrationEvaluationContext
in interface org.springframework.integration.expression.IntegrationEvaluationContextAware