public class PingRequestProcessor extends Object implements RpcProcessor<RpcRequests.PingRequest>
RpcProcessor.ExecutorSelector| Constructor and Description |
|---|
PingRequestProcessor(Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
Executor |
executor()
Get user's executor.
|
void |
handleRequest(RpcContext rpcCtx,
RpcRequests.PingRequest request)
Async to handle request with
RpcContext. |
String |
interest()
The class name of user request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutorSelectorpublic PingRequestProcessor(Executor executor)
public void handleRequest(RpcContext rpcCtx, RpcRequests.PingRequest request)
RpcProcessorRpcContext.handleRequest in interface RpcProcessor<RpcRequests.PingRequest>rpcCtx - the rpc contextrequest - the requestpublic String interest()
RpcProcessorinterest in interface RpcProcessor<RpcRequests.PingRequest>public Executor executor()
RpcProcessorexecutor in interface RpcProcessor<RpcRequests.PingRequest>Copyright © 2024. All rights reserved.