public class RpcAsyncContext extends Object implements AsyncContext
| Constructor and Description |
|---|
RpcAsyncContext(RemotingContext ctx,
RpcRequestCommand cmd,
RpcRequestProcessor processor)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
sendException(Throwable ex)
send exception back
|
void |
sendResponse(Object responseObject)
send response back
|
public RpcAsyncContext(RemotingContext ctx, RpcRequestCommand cmd, RpcRequestProcessor processor)
ctx - remoting contextcmd - rpc request commandprocessor - rpc request processorpublic void sendResponse(Object responseObject)
AsyncContextsendResponse in interface AsyncContextresponseObject - response objectAsyncContext.sendResponse(java.lang.Object)public void sendException(Throwable ex)
AsyncContextsendException in interface AsyncContextex - response exceptionAsyncContext.sendException(java.lang.Throwable)Copyright © 2024. All rights reserved.