public interface RpcCallContext
RpcEndpoint
can use to send back a message or failure. It's thread-safe
and can be called in any thread.Modifier and Type | Method and Description |
---|---|
void |
reply(Object response)
Reply a message to the sender.
|
org.apache.spark.rpc.RpcAddress |
senderAddress()
The sender of this message.
|
void |
sendFailure(Throwable e)
Report a failure to the sender.
|
void reply(Object response)
RpcEndpoint
, its RpcEndpoint.receive
will be called.response
- (undocumented)void sendFailure(Throwable e)
e
- (undocumented)org.apache.spark.rpc.RpcAddress senderAddress()