营业结束处理,比如报表、订单处理、和财务对帐单。
Close-of-business processing such as reporting, order processing, and account reconciliation.
例如,外部客户端可以触发应用程序中的流程;它还可以使应用程序结束处理或停止,如 清单 3 中所示。
For example, an external client can trigger a process in the application; it can pacify the application or stop it, shown in Listing 3.
解决方案是引入一个机制,它不做其他工作,而是尽快地处理事件,然后通过 WorkerQueue 注册这些事件并结束处理。
The solution is to introduce a mechanism that handles the events as quickly as possible, does nothing else, and then registers them with a WorkerQueue and ends the handling.
应用推荐