use of com.alipay.sofa.runtime.api.annotation.SofaMethod in project sofa-boot by sofastack.
the class RpcBindingConverter method parseSofaMethods.
public List<RpcBindingMethodInfo> parseSofaMethods(SofaMethod[] sofaMethods) {
List<RpcBindingMethodInfo> rpcBindingMethodInfos = new ArrayList<RpcBindingMethodInfo>();
for (SofaMethod sofaMethod : sofaMethods) {
RpcBindingMethodInfo rpcBindingMethodInfo = new RpcBindingMethodInfo();
rpcBindingMethodInfo.setName(sofaMethod.name());
rpcBindingMethodInfo.setType(sofaMethod.invokeType());
rpcBindingMethodInfo.setTimeout(sofaMethod.timeout());
rpcBindingMethodInfo.setRetries(sofaMethod.retries());
rpcBindingMethodInfo.setCallbackClass(sofaMethod.callbackClass());
rpcBindingMethodInfo.setCallbackRef(sofaMethod.callbackRef());
rpcBindingMethodInfos.add(rpcBindingMethodInfo);
}
return rpcBindingMethodInfos;
}
Aggregations