Another technique that can sometimes be used to find otherwise hidden lapsed listeners is preventing a given listener object from being registered twice with a given event source.
另外一项可以用来找到隐藏失效侦听器的技术是:防止指定侦听器对象在指定事件源上登记两次。
If events are building up in the transport queue (in front of the listener), increase the size of the thread pool for both the listener and the source adapter controller.
如果事件在传输队列(位于侦听器前)中堆积,则请同时增大侦听器和源适配器控制器的线程池的大小。
This means that if the listener logic changes any state in an external data source (database, mainframe, and so on) then these interactions must be treated with an "at least once" delivery paradigm.
这意味着,如果监听器逻辑更改一个外部数据源(数据库、大型机等)中的任意状态,那么这些交互必须通过一个“至少一次”交付范式处理。
应用推荐