use of com.dtflys.forest.annotation.Retryer in project forest by dromara.
the class RetryerLifeCycle method onInvokeMethod.
@Override
public void onInvokeMethod(ForestRequest request, ForestMethod method, Object[] args) {
Retryer annotation = (Retryer) request.getMethod().getExtensionParameterValue(PARAM_KEY_RETRYER);
Class<? extends ForestRetryer> clazz = annotation.value();
request.setRetryer(clazz);
}
Aggregations