@ExperimentalApi(value="There is no plan to make this API stable.") public class InProcessChannelBuilder extends io.grpc.internal.AbstractManagedChannelImplBuilder<InProcessChannelBuilder>
The channel is intended to be fully-featured, high performance, and useful in testing.
Modifier and Type | Method and Description |
---|---|
protected io.grpc.internal.ClientTransportFactory |
buildTransportFactory() |
static InProcessChannelBuilder |
forName(String name)
Create a channel builder that will connect to the server with the given name.
|
InProcessChannelBuilder |
overrideAuthority(String authority)
Overrides the authority used with TLS and HTTP virtual hosting.
|
InProcessChannelBuilder |
usePlaintext(boolean skipNegotiation)
Does nothing.
|
build, executor, intercept, intercept, userAgent
forAddress
public static InProcessChannelBuilder forName(String name)
name
- the identity of the server to connect topublic InProcessChannelBuilder usePlaintext(boolean skipNegotiation)
usePlaintext
in class ManagedChannelBuilder<InProcessChannelBuilder>
public InProcessChannelBuilder overrideAuthority(String authority)
ManagedChannelBuilder
host:port
.
Should only used by tests.
overrideAuthority
in class ManagedChannelBuilder<InProcessChannelBuilder>
protected io.grpc.internal.ClientTransportFactory buildTransportFactory()
buildTransportFactory
in class io.grpc.internal.AbstractManagedChannelImplBuilder<InProcessChannelBuilder>