public class StepExecutionInterceptor
extends org.springframework.integration.channel.interceptor.ChannelInterceptorAdapter
ChannelInterceptor
that adds the current StepExecution
(if
there is one) as a header to the message. Downstream asynchronous handlers
can then take advantage of the step context without needing to be step
scoped, which is a problem for handlers executing in another thread because
the scope context is not available.Modifier and Type | Field and Description |
---|---|
static String |
STEP_EXECUTION
The name of the header
|
Constructor and Description |
---|
StepExecutionInterceptor() |
Modifier and Type | Method and Description |
---|---|
org.springframework.integration.Message<?> |
preSend(org.springframework.integration.Message<?> message,
org.springframework.integration.MessageChannel channel) |
public static final String STEP_EXECUTION
public org.springframework.integration.Message<?> preSend(org.springframework.integration.Message<?> message, org.springframework.integration.MessageChannel channel)
preSend
in interface org.springframework.integration.channel.ChannelInterceptor
preSend
in class org.springframework.integration.channel.interceptor.ChannelInterceptorAdapter
Copyright © 2015. All rights reserved.