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

The @Retry policy

Should the operation fail, you can apply the retry policy to have the operation invoked again. The @Retry annotation can be used on a class or method level like this:

@Retry(maxRetries = 5, maxDuration= 1000, retryOn = {IOException.class})
public void operationToRetry() {
...
}

In the previous example, the operation should be retried a maximum of five times only on IOException. If the total duration of all retries lasts more than 1,000 ms, the operation will be aborted.

主站蜘蛛池模板: 绥德县| 玉山县| 顺平县| 徐水县| 固镇县| 洪湖市| 上杭县| 东光县| 甘洛县| 明水县| 会同县| 大连市| 潞西市| 海安县| 阳山县| 裕民县| 阜阳市| 武夷山市| 安义县| 襄城县| 岳阳县| 德昌县| 清镇市| 攀枝花市| 根河市| 鸡东县| 临桂县| 易门县| 红河县| 观塘区| 股票| 柏乡县| 凉山| 邹平县| 永善县| 衡山县| 弋阳县| 司法| 江川县| 洛阳市| 搜索|