ServiceT - the service subclassServiceRpcT - the spi-layer class corresponding to the serviceOptionsT - the ServiceOptions subclass corresponding to the serviceB - the ServiceOptions builderprotected abstract static class ServiceOptions.Builder<ServiceT extends Service<OptionsT>,ServiceRpcT,OptionsT extends ServiceOptions<ServiceT,ServiceRpcT,OptionsT>,B extends ServiceOptions.Builder<ServiceT,ServiceRpcT,OptionsT,B>> extends Object
ServiceOptions.| Modifier | Constructor and Description |
|---|---|
protected |
ServiceOptions.Builder() |
protected |
ServiceOptions.Builder(ServiceOptions<ServiceT,ServiceRpcT,OptionsT> options) |
| Modifier and Type | Method and Description |
|---|---|
B |
authCredentials(AuthCredentials authCredentials)
Sets the service authentication credentials.
|
protected abstract ServiceOptions<ServiceT,ServiceRpcT,OptionsT> |
build() |
B |
clock(Clock clock)
Sets the service's clock.
|
B |
host(String host)
Sets service host.
|
B |
projectId(String projectId)
Sets project id.
|
B |
retryParams(RetryParams retryParams)
Sets configuration parameters for request retries.
|
protected B |
self() |
B |
serviceFactory(ServiceFactory<ServiceT,OptionsT> serviceFactory)
Sets the service factory.
|
B |
serviceRpcFactory(ServiceRpcFactory<ServiceRpcT,OptionsT> serviceRpcFactory)
Sets the factory for rpc services.
|
protected ServiceOptions.Builder()
protected ServiceOptions.Builder(ServiceOptions<ServiceT,ServiceRpcT,OptionsT> options)
protected abstract ServiceOptions<ServiceT,ServiceRpcT,OptionsT> build()
protected B self()
public B serviceFactory(ServiceFactory<ServiceT,OptionsT> serviceFactory)
public B clock(Clock clock)
Clock will be
replaced by Java8's java.time.Clock.clock - the clock to setpublic B authCredentials(AuthCredentials authCredentials)
public B retryParams(RetryParams retryParams)
RetryParams.defaultInstance() is used. To disable retries, supply
RetryParams.noRetries() here.public B serviceRpcFactory(ServiceRpcFactory<ServiceRpcT,OptionsT> serviceRpcFactory)
Copyright © 2016 Google. All rights reserved.