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 |
---|---|
ExecutorProvider |
getBackgroundExecutorProvider() |
com.google.api.core.ApiClock |
getClock() |
CredentialsProvider |
getCredentialsProvider() |
String |
getEndpoint() |
ExecutorProvider |
getExecutorProvider()
Deprecated.
Please use
getBackgroundExecutorProvider() |
HeaderProvider |
getHeaderProvider() |
protected HeaderProvider |
getInternalHeaderProvider() |
String |
getQuotaProjectId() |
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
IOException
public final StubSettings getStubSettings()
@Deprecated public final ExecutorProvider getExecutorProvider()
getBackgroundExecutorProvider()
public final ExecutorProvider getBackgroundExecutorProvider()
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()
public final String getQuotaProjectId()
@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()