@ExperimentalApi(value="There is no plan to make this API stable, given transport API instability") public final class CronetChannelBuilder extends io.grpc.internal.AbstractManagedChannelImplBuilder<CronetChannelBuilder>
| Modifier and Type | Class and Description |
|---|---|
static class |
CronetChannelBuilder.StreamBuilderFactory
BidirectionalStream.Builder factory used for getting the gRPC BidirectionalStream.
|
| Modifier and Type | Method and Description |
|---|---|
CronetChannelBuilder |
alwaysUsePut(boolean enable)
Sets the Cronet channel to always use PUT instead of POST.
|
protected io.grpc.internal.ClientTransportFactory |
buildTransportFactory() |
static CronetChannelBuilder |
forAddress(java.lang.String name,
int port)
Always fails.
|
static CronetChannelBuilder |
forAddress(java.lang.String host,
int port,
org.chromium.net.CronetEngine cronetEngine)
Creates a new builder for the given server host, port and CronetEngine.
|
static CronetChannelBuilder |
forTarget(java.lang.String target)
Always fails.
|
CronetChannelBuilder |
maxMessageSize(int maxMessageSize)
Sets the maximum message size allowed to be received on the channel.
|
CronetChannelBuilder |
scheduledExecutorService(java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
Provides a custom scheduled executor service.
|
CronetChannelBuilder |
usePlaintext(boolean skipNegotiation)
Not supported for building cronet channel.
|
build, checkAuthority, compressorRegistry, decompressorRegistry, defaultLoadBalancingPolicy, defaultServiceConfig, directExecutor, disableRetry, disableServiceConfigLookUp, enableFullStreamDecompression, enableRetry, executor, getDefaultPort, idleTimeout, intercept, intercept, maxHedgedAttempts, maxInboundMessageSize, maxInboundMessageSize, maxRetryAttempts, maxTraceEvents, nameResolverFactory, offloadExecutor, overrideAuthority, overrideCensusStatsModule, perRpcBufferLimit, proxyDetector, retryBufferSize, setBinaryLog, setStatsEnabled, setStatsRecordFinishedRpcs, setStatsRecordRealTimeMetrics, setStatsRecordStartedRpcs, setTracingEnabled, userAgentpublic static CronetChannelBuilder forAddress(java.lang.String host, int port, org.chromium.net.CronetEngine cronetEngine)
public static CronetChannelBuilder forTarget(java.lang.String target)
forAddress(String, int, CronetEngine) instead.public static CronetChannelBuilder forAddress(java.lang.String name, int port)
forAddress(String, int, CronetEngine) instead.public final CronetChannelBuilder maxMessageSize(int maxMessageSize)
GrpcUtil.DEFAULT_MAX_MESSAGE_SIZE.public final CronetChannelBuilder alwaysUsePut(boolean enable)
public final CronetChannelBuilder usePlaintext(boolean skipNegotiation)
usePlaintext in class io.grpc.ManagedChannelBuilder<CronetChannelBuilder>public final CronetChannelBuilder scheduledExecutorService(java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
It's an optional parameter. If the user has not provided a scheduled executor service when the channel is built, the builder will use a static cached thread pool.
protected final io.grpc.internal.ClientTransportFactory buildTransportFactory()
buildTransportFactory in class io.grpc.internal.AbstractManagedChannelImplBuilder<CronetChannelBuilder>