nsimao / retry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Retry

Easy to use custom retry method implementation.

Use cases

Example

MyResponse myResponse= new RetryUtils<MyResponse>().retry(()->myService.getById(id),
        "myCustomLogInfo",
        retryCount,
        Arrays.asList(StatusRuntimeException.class,Errors.NativeIoException.class),
        MyCustomException.class);

About


Languages

Language:Java 100.0%