diff options
author | Yuchen Zeng <zyc@google.com> | 2016-08-29 18:18:41 -0700 |
---|---|---|
committer | Yuchen Zeng <zyc@google.com> | 2016-08-29 18:19:03 -0700 |
commit | 11d3c8f3d4463a63facba3d53f7e6e7f9008aad0 (patch) | |
tree | e54a464626fcaa456bc095c2dc56ca485f57b1a4 /include/grpc++/impl | |
parent | 8e2c98adf002e747cae01bdabb8b344008dbbe27 (diff) |
Add ServerBuilderPlugin::UpdateChannelArguments
Diffstat (limited to 'include/grpc++/impl')
-rw-r--r-- | include/grpc++/impl/server_builder_plugin.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpc++/impl/server_builder_plugin.h b/include/grpc++/impl/server_builder_plugin.h index 1e157efa11..61632e32fa 100644 --- a/include/grpc++/impl/server_builder_plugin.h +++ b/include/grpc++/impl/server_builder_plugin.h @@ -41,6 +41,7 @@ namespace grpc { class ServerInitializer; +class ChannelArguments; class ServerBuilderPlugin { public: @@ -58,6 +59,10 @@ class ServerBuilderPlugin { // ServerBuilderOption::UpdatePlugins virtual void ChangeArguments(const grpc::string& name, void* value) = 0; + // UpdateChannelArguments will be called in ServerBuilder::BuildAndStart(), + // before the Server instance is created. + virtual void UpdateChannelArguments(ChannelArguments* args) {} + virtual bool has_sync_methods() const { return false; } virtual bool has_async_methods() const { return false; } }; |