public interface SofaResponseCallback<T>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onAppException(Throwable throwable,
String methodName,
RequestBase request)
SOFA RPC will callback this method when server meet exception
|
void |
onAppResponse(Object appResponse,
String methodName,
RequestBase request)
SOFA RPC will callback this method when server return response success
|
void |
onSofaException(SofaRpcException sofaException,
String methodName,
RequestBase request)
SOFA RPC will callback this method when framework meet exception
|
void onAppResponse(Object appResponse, String methodName, RequestBase request)
appResponse - response objectmethodName - the invoked methodrequest - the invoked request objectvoid onAppException(Throwable throwable, String methodName, RequestBase request)
throwable - app's exceptionmethodName - the invoked methodrequest - the invoked requestvoid onSofaException(SofaRpcException sofaException, String methodName, RequestBase request)
sofaException - framework exceptionmethodName - the invoked methodrequest - the invoked request objectCopyright © 2008–2018 The Ant Financial. All rights reserved.