public final class InvokeInfo extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static InvokeInfo |
beforeInvoke(String name,
Class<?> rtnType,
List<String> cmdItems) |
static InvokeInfo |
failed(Class<?> rtnType,
List<String> cmdArgs,
Exception ex) |
protected void |
finishInvoke(Object rtnVal,
Object[] methodArgs) |
<T> T |
get()
获取返回值
建议在获取返回值之前检查 success 属性是否为 true,对方法执行失败的情况做一定处理。
|
List<String> |
getCmdArgs() |
Exception |
getException() |
String |
getExMsg() |
long |
getInterval() |
long |
getInvokeAt() |
Object[] |
getMethodArgs() |
String |
getName() |
Class<?> |
getRtnType() |
Object |
getRtnVal() |
boolean |
isSuccess() |
protected void |
onException(Exception e,
Object[] methodArgs) |
static InvokeInfo |
simpleSuccess() |
public static InvokeInfo failed(Class<?> rtnType, List<String> cmdArgs, Exception ex)
public static InvokeInfo simpleSuccess()
public static InvokeInfo beforeInvoke(String name, Class<?> rtnType, List<String> cmdItems)
public <T> T get()
T - 免除手动类型转换public String getName()
public boolean isSuccess()
public Object getRtnVal()
public Class<?> getRtnType()
public Object[] getMethodArgs()
public Exception getException()
public String getExMsg()
public long getInterval()
public long getInvokeAt()
Copyright © 2021. All rights reserved.