@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface RetryOnFailure
For example, this load()
method will retry to load the URL
content if it fails at the first attempts:
@RetryOnFailure(attempts = 2) String load(URL url) throws IOException { return url.getContent().toString(); }
Copyright © 2012 jcabi.com. All Rights Reserved.