@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1783") public final class InProcessServerBuilder extends io.grpc.internal.AbstractServerImplBuilder<InProcessServerBuilder>
The server is intended to be fully-featured, high performance, and useful in testing.
| Modifier and Type | Method and Description |
|---|---|
protected io.grpc.inprocess.InProcessServer |
buildTransportServer() |
static InProcessServerBuilder |
forName(String name)
Create a server builder that will bind with the given name.
|
InProcessServerBuilder |
useTransportSecurity(File certChain,
File privateKey)
Makes the server use TLS.
|
addService, addService, build, compressorRegistry, decompressorRegistry, directExecutor, executor, fallbackHandlerRegistryforPortpublic static InProcessServerBuilder forName(String name)
name - the identity of the server for clients to connect toprotected io.grpc.inprocess.InProcessServer buildTransportServer()
buildTransportServer in class io.grpc.internal.AbstractServerImplBuilder<InProcessServerBuilder>public InProcessServerBuilder useTransportSecurity(File certChain, File privateKey)
ServerBuilderuseTransportSecurity in class ServerBuilder<InProcessServerBuilder>certChain - file containing the full certificate chainprivateKey - file containing the private key