@InterfaceAudience.Private public class AsyncCall extends <any>
Modifier and Type | Field and Description |
---|---|
static Log |
LOG |
Constructor and Description |
---|
AsyncCall(EventLoop eventLoop,
int connectId,
Descriptors.MethodDescriptor md,
Message param,
PayloadCarryingRpcController controller,
Message responseDefaultType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getRpcTimeout()
Get the rpc timeout
|
long |
getStartTime()
Get the start time
|
void |
setFailed(IOException exception)
Set failed
|
void |
setSuccess(Message value,
CellScanner cellBlockScanner)
Set success with a cellBlockScanner
|
String |
toString() |
public AsyncCall(EventLoop eventLoop, int connectId, Descriptors.MethodDescriptor md, Message param, PayloadCarryingRpcController controller, Message responseDefaultType)
eventLoop
- for callconnectId
- connection idmd
- the method descriptorparam
- parameters to send to Servercontroller
- controller for responseresponseDefaultType
- the default response typepublic long getStartTime()
public String toString()
public void setSuccess(Message value, CellScanner cellBlockScanner)
value
- to setcellBlockScanner
- to setpublic void setFailed(IOException exception)
exception
- to setpublic long getRpcTimeout()