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

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.

主站蜘蛛池模板: 临高县| 广丰县| 黔南| 沁源县| 桐城市| 伊通| 惠东县| 望谟县| 侯马市| 浠水县| 新野县| 广宁县| 绵阳市| 华宁县| 平谷区| 本溪| 蓬安县| 确山县| 承德市| 酒泉市| 布拖县| 昔阳县| 昌宁县| 永康市| 无极县| 洪江市| 如东县| 昌吉市| 易门县| 广丰县| 本溪市| 忻城县| 南平市| 南汇区| 巨野县| 崇阳县| 天峨县| 远安县| 黄骅市| 阿坝县| 德安县|