Package io.dingodb.sdk.service.caller
Class ServiceCaller<S extends Service<S>>
java.lang.Object
io.dingodb.sdk.service.caller.ServiceCaller<S>
- All Implemented Interfaces:
Caller<S>
-
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
ConstructorsConstructorDescriptionServiceCaller(ChannelProvider channelProvider, int retry, io.grpc.CallOptions options, Function<Caller<S>, S> serviceFactory) -
Method Summary
Modifier and TypeMethodDescription<REQ extends Message.Request,RES extends Message.Response>
REScall(io.grpc.MethodDescriptor<REQ, RES> method, long requestId, REQ request, ServiceCallCycles<REQ, RES> handler) io.grpc.CallOptionsoptions()options(io.grpc.CallOptions options) intretry()retry(int retry)
-
Constructor Details
-
ServiceCaller
public ServiceCaller(ChannelProvider channelProvider, int retry, io.grpc.CallOptions options, Function<Caller<S>, S> serviceFactory)
-
-
Method Details
-
retry
public int retry() -
retry
-
options
public io.grpc.CallOptions options() -
options
-
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)
-