public interface RemoteResultHandler
限定符和类型 | 方法和说明 |
---|---|
void |
finish()
所有远端节点都返回
|
void |
onError(ClusterNode marker,
Invocation invocation,
java.lang.Throwable error)
RPC抛出异常时
包括网络异常、对端执行时异常等
|
void |
onSuccess(ClusterNode marker,
Invocation invocation,
java.lang.Object result)
正常结束返回结果
|
void onSuccess(ClusterNode marker, Invocation invocation, java.lang.Object result)
void onError(ClusterNode marker, Invocation invocation, java.lang.Throwable error)
void finish()