@InterfaceAudience.Private public class Call extends java.lang.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(java.io.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.
|
java.lang.String |
toString() |
protected Call(int id, Descriptors.MethodDescriptor md, Message param, CellScanner cells, Message responseDefaultType, int timeout)
public boolean checkAndSetTimeout()
public int remainingTime()
public java.lang.String toString()
toString
in class java.lang.Object
protected void callComplete()
public void setException(java.io.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()