本文整理了Java中com.cloudhopper.commons.util.windowing.Window.cancelAllExpired()
方法的一些代码示例,展示了Window.cancelAllExpired()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.cancelAllExpired()
方法的具体详情如下:
包路径:com.cloudhopper.commons.util.windowing.Window
类名称:Window
方法名:cancelAllExpired
[英]Cancels (completes) all expired requests. A request is considered expired if it has an expireTimestamp set and the current time is >= the getExpireTimestamp() value. Any callers/threads waiting for completion will be signaled. Also, if more than one request was expired then all callers/threads blocked with pending offers will be signaled to continue.
[中]取消(完成)所有过期的请求。如果请求设置了expireTimestamp,且当前时间>=getExpireTimestamp()值,则认为该请求已过期。等待完成的所有调用方/线程都将收到信号。此外,如果超过一个请求过期,则所有被挂起的请求阻止的呼叫者/线程都将收到继续的信号。
代码示例来源:origin: com.cloudhopper/ch-commons-util
logger.trace("Monitor running... (current window.size [" + window.getSize() + "])");
List<WindowFuture<K,R,P>> expired = window.cancelAllExpired();
if (expired != null && expired.size() > 0) {
if (logger.isTraceEnabled())
代码示例来源:origin: org.restcomm.smpp/ch-commons-util
logger.trace("Monitor running... (current window.size [" + window.getSize() + "])");
List<WindowFuture<K,R,P>> expired = window.cancelAllExpired();
if (expired != null && expired.size() > 0) {
if (logger.isTraceEnabled())
内容来源于网络,如有侵权,请联系作者删除!