|
|
@ -84,7 +84,8 @@ class ClientRpcContextUnaryImpl : public ClientRpcContext { |
|
|
|
std::function< |
|
|
|
std::function< |
|
|
|
std::unique_ptr<grpc::ClientAsyncResponseReader<ResponseType>>( |
|
|
|
std::unique_ptr<grpc::ClientAsyncResponseReader<ResponseType>>( |
|
|
|
BenchmarkService::Stub*, grpc::ClientContext*, const RequestType&, |
|
|
|
BenchmarkService::Stub*, grpc::ClientContext*, const RequestType&, |
|
|
|
CompletionQueue*)> start_req, |
|
|
|
CompletionQueue*)> |
|
|
|
|
|
|
|
start_req, |
|
|
|
std::function<void(grpc::Status, ResponseType*)> on_done) |
|
|
|
std::function<void(grpc::Status, ResponseType*)> on_done) |
|
|
|
: context_(), |
|
|
|
: context_(), |
|
|
|
stub_(stub), |
|
|
|
stub_(stub), |
|
|
@ -165,7 +166,8 @@ class AsyncClient : public ClientImpl<StubType, RequestType> { |
|
|
|
AsyncClient(const ClientConfig& config, |
|
|
|
AsyncClient(const ClientConfig& config, |
|
|
|
std::function<ClientRpcContext*( |
|
|
|
std::function<ClientRpcContext*( |
|
|
|
StubType*, std::function<gpr_timespec()> next_issue, |
|
|
|
StubType*, std::function<gpr_timespec()> next_issue, |
|
|
|
const RequestType&)> setup_ctx, |
|
|
|
const RequestType&)> |
|
|
|
|
|
|
|
setup_ctx, |
|
|
|
std::function<std::unique_ptr<StubType>(std::shared_ptr<Channel>)> |
|
|
|
std::function<std::unique_ptr<StubType>(std::shared_ptr<Channel>)> |
|
|
|
create_stub) |
|
|
|
create_stub) |
|
|
|
: ClientImpl<StubType, RequestType>(config, create_stub), |
|
|
|
: ClientImpl<StubType, RequestType>(config, create_stub), |
|
|
@ -278,7 +280,8 @@ class ClientRpcContextStreamingImpl : public ClientRpcContext { |
|
|
|
std::function<std::unique_ptr< |
|
|
|
std::function<std::unique_ptr< |
|
|
|
grpc::ClientAsyncReaderWriter<RequestType, ResponseType>>( |
|
|
|
grpc::ClientAsyncReaderWriter<RequestType, ResponseType>>( |
|
|
|
BenchmarkService::Stub*, grpc::ClientContext*, CompletionQueue*, |
|
|
|
BenchmarkService::Stub*, grpc::ClientContext*, CompletionQueue*, |
|
|
|
void*)> start_req, |
|
|
|
void*)> |
|
|
|
|
|
|
|
start_req, |
|
|
|
std::function<void(grpc::Status, ResponseType*)> on_done) |
|
|
|
std::function<void(grpc::Status, ResponseType*)> on_done) |
|
|
|
: context_(), |
|
|
|
: context_(), |
|
|
|
stub_(stub), |
|
|
|
stub_(stub), |
|
|
@ -405,7 +408,8 @@ class ClientRpcContextGenericStreamingImpl : public ClientRpcContext { |
|
|
|
std::function<gpr_timespec()> next_issue, |
|
|
|
std::function<gpr_timespec()> next_issue, |
|
|
|
std::function<std::unique_ptr<grpc::GenericClientAsyncReaderWriter>( |
|
|
|
std::function<std::unique_ptr<grpc::GenericClientAsyncReaderWriter>( |
|
|
|
grpc::GenericStub*, grpc::ClientContext*, |
|
|
|
grpc::GenericStub*, grpc::ClientContext*, |
|
|
|
const grpc::string& method_name, CompletionQueue*, void*)> start_req, |
|
|
|
const grpc::string& method_name, CompletionQueue*, void*)> |
|
|
|
|
|
|
|
start_req, |
|
|
|
std::function<void(grpc::Status, ByteBuffer*)> on_done) |
|
|
|
std::function<void(grpc::Status, ByteBuffer*)> on_done) |
|
|
|
: context_(), |
|
|
|
: context_(), |
|
|
|
stub_(stub), |
|
|
|
stub_(stub), |
|
|
|