public class RetryerLifeCycle extends Object implements MethodAnnotationLifeCycle<Retryer,Object>
Constructor and Description |
---|
RetryerLifeCycle() |
Modifier and Type | Method and Description |
---|---|
void |
onInvokeMethod(ForestRequest request,
ForestMethod method,
Object[] args)
默认回调函数: 接口方法执行时调用该方法
|
void |
onMethodInitialized(ForestMethod method,
Retryer annotation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onError, onSuccess
addAttribute, afterExecute, beforeExecute, getAttribute, getAttribute, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInteger, getAttributeAsString, getAttributes, onLoadCookie, onProgress, onRedirection, onRetry, onSaveCookie
public void onMethodInitialized(ForestMethod method, Retryer annotation)
onMethodInitialized
in interface MethodAnnotationLifeCycle<Retryer,Object>
public void onInvokeMethod(ForestRequest request, ForestMethod method, Object[] args)
Interceptor
默认为什么都不做
onInvokeMethod
in interface Interceptor<Object>
request
- Forest请求对象method
- Forest方法对象args
- 方法调用入参数组Copyright © 2022. All rights reserved.