首页 > 解决方案 > 是否可以处理责任链实施中的收敛?

问题描述

我想在我的实现中实现处理程序的扇出和收敛。处理此类情况的最佳做法是什么。例如

handler1->handler2,handler3
handler2->handler4
handler3->handler4
handler4->handler5   //this should be executed only if both handlers handler2 and handler3 are completed.

标签: algorithmdesign-patternsactorchain-of-responsibility

解决方案


推荐阅读