aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/impl/rpc_service_method.h
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2016-01-13 15:27:33 -0800
committerGravatar yang-g <yangg@google.com>2016-01-13 15:27:33 -0800
commitbef0d8744e1bd2227e19c13ac93a04a0fe2458ae (patch)
treed2588e2ae364ad1d3c0c3ba2e01935ed5a25f996 /include/grpc++/impl/rpc_service_method.h
parentdc548ed65db8704906864586d5bc1ba08933ee78 (diff)
Support sync/async methods in the same service
Diffstat (limited to 'include/grpc++/impl/rpc_service_method.h')
-rw-r--r--include/grpc++/impl/rpc_service_method.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/grpc++/impl/rpc_service_method.h b/include/grpc++/impl/rpc_service_method.h
index c6451dcbc3..3b47a4d64d 100644
--- a/include/grpc++/impl/rpc_service_method.h
+++ b/include/grpc++/impl/rpc_service_method.h
@@ -48,8 +48,6 @@ namespace grpc {
class ServerContext;
class StreamContextInterface;
-// TODO(rocking): we might need to split this file into multiple ones.
-
// Base class for running an RPC handler.
class MethodHandler {
public:
@@ -82,6 +80,7 @@ class RpcServiceMethod : public RpcMethod {
void* server_tag() const { return server_tag_; }
// if MethodHandler is nullptr, then this is an async method
MethodHandler* handler() const { return handler_.get(); }
+ void ResetHandler() { handler_.reset(); }
private:
void* server_tag_;