【发布时间】:2021-06-25 09:27:08
【问题描述】:
有 Spring 集成流程。这必须由用户在运行时手动停止,并且需要使用 ChannelInterceptor 来停止执行。这是基于 xml 的配置。
【问题讨论】:
有 Spring 集成流程。这必须由用户在运行时手动停止,并且需要使用 ChannelInterceptor 来停止执行。这是基于 xml 的配置。
【问题讨论】:
要停止流程,只需在端点上调用 stop() 即可,这是流程的开始。为特定的id 自动连接一个AbstractEndpoint 并调用它的stop()。如果您打算在ChannelInterceptor 或其他服务中执行此操作,这真的没关系。
还有一种称为Control Bus 的常见模式,其中要发送的命令之一可能是上面提到的stop() 操作:https://docs.spring.io/spring-integration/docs/current/reference/html/system-management.html#control-bus
【讨论】: