例如,KKEY _ TRB可能是不必要的,因为您的代码并不使用计时器服务。
For example, KKEY_TRB might be unnecessary because your code does not use timer services.
采用这种方式配置的计时器尽可能等待服务作出响应。
Timers configured in this manner give the service every opportunity to respond.
事实上,主动计时器的一个后果是,可能会终止服务请求并让事务失败,而在其他情况下提供更多的时间就可能会完成这些事务。
In fact, one consequence of the aggressive timer is that it might abort a service request and fail a transaction that otherwise would have completed given more time.
此问题的解决方案是在同步调用的服务上实现主动调用计时器。
The solution to this problem is to implement aggressive invocation timers on synchronously invoked services.
在实践中,很多计时器都比服务的平均响应时间长得多。
In practice, many timers are set far longer than the average response time of the service.
最后,我们启动了一个计时器处理程序(如清单6所示)来处理以下场景:Web服务客户机回调处理程序一直没有被调用,这将导致一个超时。
Finally, we start a timer handler, as shown in Listing 6, to handle the scenario where the Web service client callback handler is never called, which will result in a timeout.
在SOA服务调用上实现主动计时器。
传统计时器为典型的驱动程序超时提供了一种有效的机制,而hrtimer为更精确的计时器功能提供了更高水平的服务质量。
Traditional timers provide an efficient mechanism for typical driver time-outs, where hrtimers provide another level of quality of service for more precise timer capabilities.
图8显示了实现更为主动的服务计时器将如何提高服务器的服务速率和吞吐量。
Figure 8 shows how implementing a more aggressive service timer improves the service rate and throughput of the server.
主动型服务调用计时器设置为服务合理的预期响应时间,并对传输延迟予以一定的考虑。
An aggressive service-invocation timer is set to the reasonable expected response time of the service, with some consideration for transient delays.
可以通过结合使用计时器和HTTP实现提供轻量的服务,从而自动地提供文件内容,在修改文件内容时更新返回的数据。
You can combine this with the HTTP implementation to provide a lightweight service to serve up the contents of a file, updating the data returned as the file content is modified.
图7和图 8 中的队列理论模型以量化方式说明了主动计时器可如何提高应用服务器的服务速率(或吞吐量)。
The queuing theory models in Figures 7 and 8 illustrate quantitatively how aggressive timers increase the service rate (or throughput) of the application server.
模型中的计算结果说明了图8 中的主动计时器可极大地提高应用服务器的总体服务速率和吞吐量。
The model's calculations demonstrate how the aggressive timer in Figure 8 results in a significant improvement of the overall service rate and throughput of the application server.
短期解决方案2:在服务器调用上实现主动计时器。
Short-term solution 2: implementing aggressive timers on service invocations.
用于应用服务器的JSR- 236计时器。
提供基于服务器的计时器组件,用以按指定的间隔引发事件。
System. Timers - provides the server-based Timer component, which allows you to raise an event on a specified interval.
提供基于服务器的计时器组件,用以按指定的间隔引发事件。
System. Timers - provides the server-based Timer component, which allows you to raise an event on a specified interval.
应用推荐