Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 selectoutputIn 块和多个连接到服务块的 selectOutputOut 块。selectoutputIn 块使用一个函数来确定代理的哪个输出。是否有一种简单的方法可以插入列表并确定要选择的第一个可用服务块。如果我要添加更多的服务块,我怎样才能让它变得容易呢?
如果您有 1000 个这样的服务,最好创建 1000 个内部具有以下结构的代理:
当您有人口返回主时,您需要一个退出块,selectOuputIn 将不起作用。
要选择可用的服务块,您可以在 selectOutputIn 显式选择中执行此操作(使用代理)
findFirst(myAgents, a->a.service.delaySize()==0).selectOutputOut