@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1783") public final class InProcessChannelBuilder extends io.grpc.internal.AbstractManagedChannelImplBuilder<InProcessChannelBuilder>
The channel is intended to be fully-featured, high performance, and useful in testing.
For usage examples, see InProcessServerBuilder.
| 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 |
maxInboundMessageSize(int max) |
protected boolean |
recordsStats() |
InProcessChannelBuilder |
usePlaintext(boolean skipNegotiation)
Does nothing.
|
build, checkAuthority, compressorRegistry, decompressorRegistry, directExecutor, executor, getNameResolverParams, idleTimeout, intercept, intercept, loadBalancerFactory, maxInboundMessageSize, nameResolverFactory, overrideAuthority, setEnableTracing, statsContextFactory, userAgentforAddress, forTargetpublic static InProcessChannelBuilder forName(String name)
name - the identity of the server to connect topublic final InProcessChannelBuilder maxInboundMessageSize(int max)
maxInboundMessageSize in class io.grpc.internal.AbstractManagedChannelImplBuilder<InProcessChannelBuilder>public InProcessChannelBuilder usePlaintext(boolean skipNegotiation)
usePlaintext in class ManagedChannelBuilder<InProcessChannelBuilder>skipNegotiation - @{code true} if there is a priori knowledge that the endpoint supports
plaintext, false if plaintext use must be negotiated.@Internal protected io.grpc.internal.ClientTransportFactory buildTransportFactory()
buildTransportFactory in class io.grpc.internal.AbstractManagedChannelImplBuilder<InProcessChannelBuilder>@Internal protected boolean recordsStats()
recordsStats in class io.grpc.internal.AbstractManagedChannelImplBuilder<InProcessChannelBuilder>