类 StepExecutionInterceptor
- java.lang.Object
- org.springframework.messaging.support.ChannelInterceptorAdapter
- org.springframework.batch.integration.async.StepExecutionInterceptor
- 所有已实现的接口:
org.springframework.messaging.support.ChannelInterceptor
public class StepExecutionInterceptor extends org.springframework.messaging.support.ChannelInterceptorAdapter
AChannelInterceptor
that adds the currentStepExecution
(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.- 作者:
- Dave Syer
字段概要
字段 修饰符和类型 字段 说明 static java.lang.String
STEP_EXECUTION
The name of the header
构造器概要
构造器 构造器 说明 StepExecutionInterceptor()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.messaging.Message<?>
preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
字段详细资料
STEP_EXECUTION
public static final java.lang.String STEP_EXECUTION
The name of the header- 另请参阅:
- 常量字段值
构造器详细资料
StepExecutionInterceptor
public StepExecutionInterceptor()
方法详细资料
preSend
public org.springframework.messaging.Message<?> preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
- 指定者:
preSend
在接口中org.springframework.messaging.support.ChannelInterceptor
- 覆盖:
preSend
在类中org.springframework.messaging.support.ChannelInterceptorAdapter