REQUEST - The type of request message.RESPONSE - The type of the response message.public static interface Controller.CustomMessageHandler<REQUEST,RESPONSE>
| Modifier and Type | Method and Description |
|---|---|
Controller.CustomResponse<RESPONSE> |
onMessage(REQUEST pBody,
DrillBuf dBody)
Handle an incoming message.
|
Controller.CustomResponse<RESPONSE> onMessage(REQUEST pBody, DrillBuf dBody) throws UserRpcException
pBody - The protobuf body message object of type REQUEST that was sent.dBody - An optional byte body that was sent along with the structured message.UserRpcException - throw this exception if there is an RPC failure that should be communicated to the sender.Copyright © 2022 The Apache Software Foundation. All rights reserved.