com.cloudhopper.commons.util.windowing.WindowFuture.await()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(209)

本文整理了Java中com.cloudhopper.commons.util.windowing.WindowFuture.await()方法的一些代码示例,展示了WindowFuture.await()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindowFuture.await()方法的具体详情如下:
包路径:com.cloudhopper.commons.util.windowing.WindowFuture
类名称:WindowFuture
方法名:await

WindowFuture.await介绍

[英]Waits for this future to be completed within the amount of time remaining from the original offerTimeoutMillis minus the amount of time it took for the Window to accept the offer. For example, if Window.offer was called with an offerTimeoutMillis of 5000 milliseconds and it took 1000 milliseconds for the Window to accept the offer, then this method would wait for 4000 milliseconds.
[中]等待此未来在原始报价剩余时间减去窗口接受报价所需时间后完成。例如,如果窗口。调用offer时,offerTimeoutMillis为5000毫秒,窗口接受offer需要1000毫秒,然后此方法将等待4000毫秒。

代码示例

代码示例来源:origin: com.fizzed/ch-smpp

  1. boolean completedWithinTimeout = future.await();

代码示例来源:origin: com.cloudhopper/ch-smpp

  1. boolean completedWithinTimeout = future.await();

代码示例来源:origin: twitter-archive/cloudhopper-smpp

  1. boolean completedWithinTimeout = future.await();

代码示例来源:origin: org.restcomm.smpp/ch-smpp

  1. boolean completedWithinTimeout = future.await();

相关文章