class experimental_type
Defined at line 259 of file ../../third_party/grpc-migrating/src/include/grpcpp/server_builder.h
NOTE: class experimental_type is not part of the public API of this class.
TODO(yashykt): Integrate into public API when this is no longer
experimental.
Public Methods
std::unique_ptr<grpc::experimental::ExternalConnectionAcceptor> AddExternalConnectionAcceptor (ExternalConnectionType type, std::shared_ptr<ServerCredentials> creds)
Register an acceptor to handle the externally accepted connection in
grpc server. The returned acceptor can be used to pass the connection
to grpc server, where a channel will be created with the provided
server credentials.
void SetAuthorizationPolicyProvider (std::shared_ptr<experimental::AuthorizationPolicyProviderInterface> provider)
Sets server authorization policy provider in
GRPC_ARG_AUTHORIZATION_POLICY_PROVIDER channel argument.
void EnableCallMetricRecording (experimental::ServerMetricRecorder * server_metric_recorder)
Enables per-call load reporting. The server will automatically send the
load metrics after each RPC. The caller can report load metrics for the
current call to what ServerContext::ExperimentalGetCallMetricRecorder()
returns. The server merges metrics from the optional
server_metric_recorder when provided where the call metric recorder take
a higher precedence. The caller owns and must ensure the server metric
recorder outlives the server.
ServerBuilder & AddPassiveListener (std::shared_ptr<grpc::ServerCredentials> creds, std::unique_ptr<grpc::experimental::PassiveListener> & passive_listener)
Creates a passive listener for Server Endpoint injection.
lets applications provide pre-established connections
to gRPC Servers. The server will behave as if it accepted the connection
itself on its own listening addresses.
This can be called multiple times to create passive listeners with
different server credentials.
void experimental_type (ServerBuilder * builder)
Defined at line 261 of file ../../third_party/grpc-migrating/src/include/grpcpp/server_builder.h
void SetInterceptorCreators (std::vector<std::unique_ptr<grpc::experimental::ServerInterceptorFactoryInterface>> interceptor_creators)
Defined at line 263 of file ../../third_party/grpc-migrating/src/include/grpcpp/server_builder.h
Enumerations
enum ExternalConnectionType
| Name | Value |
|---|---|
| FROM_FD | 0 |
Defined at line 270 of file ../../third_party/grpc-migrating/src/include/grpcpp/server_builder.h