ServiceT - the service subclassServiceRpcT - the spi-layer class corresponding to the serviceOptionsT - the GrpcServiceOptions subclass corresponding to the serviceB - the ServiceOptions builderprotected abstract static class GrpcServiceOptions.Builder<ServiceT extends Service<OptionsT>,ServiceRpcT,OptionsT extends GrpcServiceOptions<ServiceT,ServiceRpcT,OptionsT>,B extends GrpcServiceOptions.Builder<ServiceT,ServiceRpcT,OptionsT,B>> extends ServiceOptions.Builder<ServiceT,ServiceRpcT,OptionsT,B>
GrpcServiceOptions.| Modifier | Constructor and Description |
|---|---|
protected |
GrpcServiceOptions.Builder() |
protected |
GrpcServiceOptions.Builder(GrpcServiceOptions<ServiceT,ServiceRpcT,OptionsT> options) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract GrpcServiceOptions<ServiceT,ServiceRpcT,OptionsT> |
build() |
B |
executorFactory(GrpcServiceOptions.ExecutorFactory<ScheduledExecutorService> executorFactory)
Sets the scheduled executor factory.
|
B |
initialTimeout(int initialTimeout)
Sets the timeout for the initial RPC, in milliseconds.
|
B |
maxTimeout(int maxTimeout)
Sets the maximum timeout for a RPC call, in milliseconds.
|
B |
timeoutMultiplier(double timeoutMultiplier)
Sets the timeout multiplier.
|
authCredentials, clock, host, projectId, retryParams, self, serviceFactory, serviceRpcFactoryprotected GrpcServiceOptions.Builder()
protected GrpcServiceOptions.Builder(GrpcServiceOptions<ServiceT,ServiceRpcT,OptionsT> options)
protected abstract GrpcServiceOptions<ServiceT,ServiceRpcT,OptionsT> build()
build in class ServiceOptions.Builder<ServiceT extends Service<OptionsT>,ServiceRpcT,OptionsT extends GrpcServiceOptions<ServiceT,ServiceRpcT,OptionsT>,B extends GrpcServiceOptions.Builder<ServiceT,ServiceRpcT,OptionsT,B>>public B executorFactory(GrpcServiceOptions.ExecutorFactory<ScheduledExecutorService> executorFactory)
public B initialTimeout(int initialTimeout)
timeoutMultiplier(double). Default value is 20000.IllegalArgumentException - if the provided timeout is < 0public B timeoutMultiplier(double timeoutMultiplier)
timeoutMultiplier * previousTimeout. Default value is 1.5.IllegalArgumentException - if the provided timeout multiplier is < 0public B maxTimeout(int maxTimeout)
maxTimeout is lower than the initial timeout the initialTimeout(int) value
is used instead.Copyright © 2016 Google. All rights reserved.