@InterfaceAudience.Private public static class CoprocessorRpcUtils.BlockingRpcCallback<R> extends Object implements com.google.protobuf.RpcCallback<R>
RpcCallback implementation providing a
Future-like BlockingRpcCallback.get() method, which
will block util the instance's BlockingRpcCallback.run(Object) method has been called.
R is the RPC response type that will be passed to the run(Object) method.| 构造器和说明 |
|---|
BlockingRpcCallback() |
public void run(R parameter)
null in the case of
an error.run 在接口中 com.google.protobuf.RpcCallback<R>parameter - the response object or null if an error occurredpublic R get() throws IOException
run(Object) or null if a null value was
passed. When used asynchronously, this method will block until the run(Object)
method has been called.null if no response was passedIOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.