@FunctionalInterface public interface DecoratingRpcServiceFunction
SimpleDecoratingRpcService with
RpcService.decorate(DecoratingRpcServiceFunction).| Modifier and Type | Method and Description |
|---|---|
RpcResponse |
serve(RpcService delegate,
ServiceRequestContext ctx,
RpcRequest req)
Serves an incoming
RpcRequest. |
RpcResponse serve(RpcService delegate, ServiceRequestContext ctx, RpcRequest req) throws Exception
RpcRequest.delegate - the RpcService being decorated by this functionctx - the context of the received RpcRequestreq - the received RpcRequestRpcResponseExceptionCopyright © 2020 LeanCloud. All rights reserved.