Annotation Interface Recover


@Documented @Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface Recover
Annotation for a method invocation that is a recovery handler. A suitable recovery handler has a first parameter of type Throwable (or a subtype of Throwable) and a return value of the same type as the @Retryable method to recover from. The Throwable first argument is optional (but a method without it will only be called if no others match). Subsequent arguments are populated from the argument list of the failed method in order.
从以下版本开始:
4.0
作者:
Dave Syer