@InterfaceAudience.Private public class Call extends Object
Modifier | Constructor and Description |
---|---|
protected |
Call(int id,
Descriptors.MethodDescriptor md,
Message param,
CellScanner cells,
Message responseDefaultType,
int timeout) |
Modifier and Type | Method and Description |
---|---|
protected void |
callComplete()
Indicate when the call is complete and the
value or error are available.
|
boolean |
checkAndSetTimeout()
Check if the call did timeout.
|
long |
getStartTime() |
int |
remainingTime() |
void |
setException(IOException error)
Set the exception when there is an error.
|
void |
setResponse(Message response,
CellScanner cells)
Set the return value when there is no error.
|
String |
toString() |
protected Call(int id, Descriptors.MethodDescriptor md, Message param, CellScanner cells, Message responseDefaultType, int timeout)
public boolean checkAndSetTimeout()
public int remainingTime()
protected void callComplete()
public void setException(IOException error)
error
- exception thrown by the call; either local or remotepublic void setResponse(Message response, CellScanner cells)
response
- return value of the call.cells
- Can be nullpublic long getStartTime()