ServiceT - the service subclassServiceRpcT - the spi-layer class corresponding to the serviceOptionsT - the ServiceOptions subclass corresponding to the servicepublic abstract class GrpcServiceOptions<ServiceT extends Service<OptionsT>,ServiceRpcT,OptionsT extends GrpcServiceOptions<ServiceT,ServiceRpcT,OptionsT>> extends ServiceOptions<ServiceT,ServiceRpcT,OptionsT>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GrpcServiceOptions.Builder<ServiceT extends Service<OptionsT>,ServiceRpcT,OptionsT extends GrpcServiceOptions<ServiceT,ServiceRpcT,OptionsT>,B extends GrpcServiceOptions.Builder<ServiceT,ServiceRpcT,OptionsT,B>>
Builder for
GrpcServiceOptions. |
static interface |
GrpcServiceOptions.ExecutorFactory<T extends ExecutorService>
An interface for
ExecutorService factories. |
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcServiceOptions(Class<? extends ServiceFactory<ServiceT,OptionsT>> serviceFactoryClass,
Class<? extends ServiceRpcFactory<ServiceRpcT,OptionsT>> rpcFactoryClass,
GrpcServiceOptions.Builder<ServiceT,ServiceRpcT,OptionsT,?> builder) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
baseEquals(GrpcServiceOptions<?,?,?> other) |
protected int |
baseHashCode() |
protected GrpcServiceOptions.ExecutorFactory<ScheduledExecutorService> |
executorFactory()
Returns a scheduled executor service provider.
|
int |
initialTimeout()
Returns the timeout for the initial RPC, in milliseconds.
|
int |
maxTimeout()
Returns the maximum timeout for a RPC call, in milliseconds.
|
double |
timeoutMultiplier()
Returns the timeout multiplier.
|
appEngineAppId, appEngineProjectId, applicationName, authCredentials, baseEquals, clock, defaultHost, defaultProject, defaultRetryParams, defaultRpcFactory, defaultServiceFactory, googleCloudProjectId, host, libraryName, libraryVersion, projectId, projectIdRequired, retryParams, rpc, scopes, service, serviceAccountProjectId, toBuilderprotected GrpcServiceOptions(Class<? extends ServiceFactory<ServiceT,OptionsT>> serviceFactoryClass, Class<? extends ServiceRpcFactory<ServiceRpcT,OptionsT>> rpcFactoryClass, GrpcServiceOptions.Builder<ServiceT,ServiceRpcT,OptionsT,?> builder)
protected GrpcServiceOptions.ExecutorFactory<ScheduledExecutorService> executorFactory()
public int initialTimeout()
timeoutMultiplier(). Default value is 20000.public double timeoutMultiplier()
timeoutMultiplier * previousTimeout. Default value is 1.5.public int maxTimeout()
protected int baseHashCode()
baseHashCode in class ServiceOptions<ServiceT extends Service<OptionsT>,ServiceRpcT,OptionsT extends GrpcServiceOptions<ServiceT,ServiceRpcT,OptionsT>>protected boolean baseEquals(GrpcServiceOptions<?,?,?> other)
Copyright © 2016 Google. All rights reserved.