REQUEST - RESPONSE - protected abstract static class AsyncPbRpcProxy.AsyncCallableRequest<REQUEST extends com.google.protobuf.Message,RESPONSE extends com.google.protobuf.Message> extends AsyncPbRpcProxy.NodeCallableRequest<REQUEST,RESPONSE>
callInternal()nodeIdcallback, request| Modifier | Constructor and Description |
|---|---|
protected |
AsyncCallableRequest(LlapNodeId nodeId,
REQUEST request,
AsyncPbRpcProxy.ExecuteRequestCallback<RESPONSE> callback) |
| Modifier and Type | Method and Description |
|---|---|
RESPONSE |
call()
Override this method to make a synchronous request and wait for response.
|
void |
callInternal() |
org.apache.hadoop.util.concurrent.AsyncGet<com.google.protobuf.Message,Exception> |
getResponseFuture() |
getNodeIdgetCallbackprotected AsyncCallableRequest(LlapNodeId nodeId, REQUEST request, AsyncPbRpcProxy.ExecuteRequestCallback<RESPONSE> callback)
public RESPONSE call() throws Exception
AsyncPbRpcProxy.CallableRequestpublic org.apache.hadoop.util.concurrent.AsyncGet<com.google.protobuf.Message,Exception> getResponseFuture()
Copyright © 2024 The Apache Software Foundation. All rights reserved.