Add note on the experimental nature of the additional method in ServerInterface

pull/17034/head
Yash Tibrewal 6 years ago
parent 85ddf5c713
commit bfd1935afc
  1. 7
      include/grpcpp/impl/codegen/server_interface.h
  2. 3
      include/grpcpp/server.h

@ -333,7 +333,12 @@ class ServerInterface : public internal::CallHook {
} }
private: private:
virtual const std::vector< // EXPERIMENTAL
// Getter method for the vector of interceptor factory objects.
// Returns a nullptr (rather than being pure) since this is a new method and
// adding a new pure method to an interface would be a breaking change (even
// though this is private and non-API)
virtual std::vector<
std::unique_ptr<experimental::ServerInterceptorFactoryInterface>>* std::unique_ptr<experimental::ServerInterceptorFactoryInterface>>*
interceptor_creators() { interceptor_creators() {
return nullptr; return nullptr;

@ -191,8 +191,7 @@ class Server : public ServerInterface, private GrpcLibraryCodegen {
grpc_server* server() override { return server_; }; grpc_server* server() override { return server_; };
private: private:
const std::vector< std::vector<std::unique_ptr<experimental::ServerInterceptorFactoryInterface>>*
std::unique_ptr<experimental::ServerInterceptorFactoryInterface>>*
interceptor_creators() override { interceptor_creators() override {
return &interceptor_creators_; return &interceptor_creators_;
} }

Loading…
Cancel
Save