官术网_书友最值得收藏!

The @Timeout policy

The @Timeout annotation could be applied to a class or method to make sure that an operation doesn't last forever:

@Timeout(200)
public void operationCouldTimeout() {
...
}

In the preceding example, the operation will be stopped should it last more than 200 ms.

主站蜘蛛池模板: 科尔| 微山县| 安平县| 招远市| 虹口区| 焦作市| 五莲县| 米脂县| 岗巴县| 万山特区| 武川县| 南汇区| 福建省| 屏边| 兴国县| 治县。| 富顺县| 大新县| 江西省| 吴堡县| 定远县| 汾西县| 金华市| 涡阳县| 天峻县| 句容市| 莫力| 房产| 广水市| 华阴市| 扎鲁特旗| 邹城市| 磐石市| 紫金县| 通渭县| 涡阳县| 桃园县| 马山县| 金山区| 嘉荫县| 宜兴市|