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

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.

主站蜘蛛池模板: 西城区| 宁陕县| 浦东新区| 申扎县| 佛山市| 枞阳县| 盐津县| 凤台县| 富宁县| 德安县| 汾西县| 黑水县| 伊春市| 承德市| 奉新县| 丹江口市| 孝义市| 临西县| 钟祥市| 当雄县| 黄陵县| 阿坝| 慈溪市| 湖口县| 岢岚县| 哈巴河县| 滁州市| 乌兰浩特市| 澎湖县| 赤峰市| 荃湾区| 萨迦县| 德昌县| 涪陵区| 南溪县| 老河口市| 双牌县| 高淳县| 施甸县| 梁平县| 南康市|