类 StepExecutionInterceptor

  • 所有已实现的接口:
    org.springframework.messaging.support.ChannelInterceptor

    public class StepExecutionInterceptor
    extends org.springframework.messaging.support.ChannelInterceptorAdapter
    A 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.
    作者:
    Dave Syer
    • 字段概要

      字段 
      修饰符和类型字段说明
      static java.lang.StringSTEP_EXECUTION
      The name of the header
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      org.springframework.messaging.Message<?>preSend​(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel) 
      • 从类继承的方法 org.springframework.messaging.support.ChannelInterceptorAdapter

        afterReceiveCompletion, afterSendCompletion, postReceive, postSend, preReceive
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • 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