@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.ManagedChannelBuilder<?> |
delegate() |
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.
|
build, compressorRegistry, decompressorRegistry, defaultLoadBalancingPolicy, defaultServiceConfig, directExecutor, disableRetry, disableServiceConfigLookUp, enableFullStreamDecompression, enableRetry, executor, idleTimeout, intercept, intercept, keepAliveTime, keepAliveTimeout, keepAliveWithoutCalls, maxHedgedAttempts, maxInboundMessageSize, maxInboundMetadataSize, maxRetryAttempts, maxTraceEvents, nameResolverFactory, offloadExecutor, overrideAuthority, perRpcBufferLimit, proxyDetector, retryBufferSize, setBinaryLog, thisT, toString, usePlaintext, userAgent, useTransportSecuritypublic 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.@Internal protected io.grpc.ManagedChannelBuilder<?> delegate()
delegate in class io.grpc.internal.AbstractManagedChannelImplBuilder<CronetChannelBuilder>public final CronetChannelBuilder maxMessageSize(int maxMessageSize)
GrpcUtil.DEFAULT_MAX_MESSAGE_SIZE.public final CronetChannelBuilder alwaysUsePut(boolean enable)
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.