@InterfaceAudience.Private public interface Delayable
Modifier and Type | Method and Description |
---|---|
void |
endDelay()
Signal the end of a delayed RPC, without specifying the return value.
|
void |
endDelay(Object result)
Signal that the RPC server is now allowed to send the response.
|
void |
endDelayThrowing(Throwable t)
End the call, throwing and exception to the caller.
|
boolean |
isDelayed() |
boolean |
isReturnValueDelayed() |
void |
startDelay(boolean delayReturnValue)
Signal that the call response should be delayed, thus freeing the RPC
server to handle different requests.
|
void startDelay(boolean delayReturnValue)
delayReturnValue
- Controls whether the return value of the call
should be set when ending the delay or right away. There are cases when
the return value can be set right away, even if the call is delayed.boolean isDelayed()
boolean isReturnValueDelayed()
void endDelay(Object result) throws IOException
result
- The value to return to the caller. If the corresponding
delay response specified that the return value should
not be delayed, this parameter must be null.IOException
void endDelay() throws IOException
IOException
void endDelayThrowing(Throwable t) throws IOException
t
- Object to throw to the client.IOException