Package io.dingodb.sdk.service.caller
Class RpcCaller<S extends Service<S>>
java.lang.Object
io.dingodb.sdk.service.caller.RpcCaller<S>
- All Implemented Interfaces:
Caller<S>,InvocationHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.dingodb.sdk.service.Caller
Caller.CallExecutor<REQ extends Message.Request,RES extends Message.Response> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <REQ extends Message,RES extends Message.Response>
RpcFuture<RES>asyncCall(io.grpc.MethodDescriptor<REQ, RES> method, REQ request, io.grpc.CallOptions options, io.grpc.Channel channel) <REQ extends Message.Request,RES extends Message.Response>
REScall(io.grpc.MethodDescriptor<REQ, RES> method, long requestId, REQ request, ServiceCallCycles<REQ, RES> handler) static <REQ extends Message.Request,RES extends Message.Response>
REScall(io.grpc.MethodDescriptor<REQ, RES> method, REQ request, io.grpc.CallOptions options, io.grpc.Channel channel, long trace, ServiceCallCycles<REQ, RES> handler)
-
Constructor Details
-
RpcCaller
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
call
public <REQ extends Message.Request,RES extends Message.Response> RES call(io.grpc.MethodDescriptor<REQ, RES> method, long requestId, REQ request, ServiceCallCycles<REQ, RES> handler) -
asyncCall
protected static <REQ extends Message,RES extends Message.Response> RpcFuture<RES> asyncCall(io.grpc.MethodDescriptor<REQ, RES> method, REQ request, io.grpc.CallOptions options, io.grpc.Channel channel) -
call
public static <REQ extends Message.Request,RES extends Message.Response> RES call(io.grpc.MethodDescriptor<REQ, RES> method, REQ request, io.grpc.CallOptions options, io.grpc.Channel channel, long trace, ServiceCallCycles<REQ, RES> handler)
-