public abstract class ClientSettings<SettingsT extends ClientSettings<SettingsT>> extends Object
This base class includes settings that are applicable to all services, which includes things like settings for creating an executor, credentials, transport-specific settings, and identifiers for http headers.
If no ExecutorProvider is set, then InstantiatingExecutorProvider will be used, which creates a default executor.
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientSettings.Builder<SettingsT extends ClientSettings<SettingsT>,B extends ClientSettings.Builder<SettingsT,B>> |
| Modifier | Constructor and Description |
|---|---|
protected |
ClientSettings(ClientSettings.Builder builder)
Constructs an instance of ClientSettings.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiClock |
getClock() |
CredentialsProvider |
getCredentialsProvider() |
String |
getEndpoint() |
ExecutorProvider |
getExecutorProvider() |
HeaderProvider |
getHeaderProvider() |
protected HeaderProvider |
getInternalHeaderProvider() |
StubSettings |
getStubSettings() |
TransportChannelProvider |
getTransportChannelProvider() |
org.threeten.bp.Duration |
getWatchdogCheckInterval() |
WatchdogProvider |
getWatchdogProvider() |
abstract <B extends ClientSettings.Builder<SettingsT,B>> |
toBuilder() |
String |
toString() |
protected ClientSettings(ClientSettings.Builder builder) throws IOException
IOExceptionpublic final StubSettings getStubSettings()
public final ExecutorProvider getExecutorProvider()
public final TransportChannelProvider getTransportChannelProvider()
public final CredentialsProvider getCredentialsProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public final HeaderProvider getHeaderProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") protected final HeaderProvider getInternalHeaderProvider()
public final com.google.api.core.ApiClock getClock()
public final String getEndpoint()
@BetaApi(value="The surface for streaming is not stable yet and may change in the future.") @Nullable public final WatchdogProvider getWatchdogProvider()
@BetaApi(value="The surface for streaming is not stable yet and may change in the future.") @Nonnull public final org.threeten.bp.Duration getWatchdogCheckInterval()
public abstract <B extends ClientSettings.Builder<SettingsT,B>> B toBuilder()