Camel Hystrix EIP:是否可以根据交换中的内容主体动态选择onFallback或onFallbackVia



现有路线:

from("direct:test").id(id+"direct:test")
.hystrix()
.id("testHystrix").hystrixConfiguration().corePoolSize(corePoolSize)
.end()
.process(requestProcessor)
.to(endPoint)
.onFallbackViaNetwork()
.toD("${headers.fallbackEndPoint}")
.endHystrix();

是否可以根据交换中的主体动态选择回退逻辑onFallback((或onFallbackViaNetwork((。

否,但您可以有两条路由,每条路由都有一条或另一条,然后根据消息正文内容路由到适当的路由。

最新更新