public abstract class ClientSettings<SettingsT extends ClientSettings<SettingsT>>
extends java.lang.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() |
java.lang.String |
getEndpoint() |
ExecutorProvider |
getExecutorProvider() |
HeaderProvider |
getHeaderProvider() |
protected HeaderProvider |
getInternalHeaderProvider() |
java.lang.String |
getQuotaProjectId() |
StubSettings |
getStubSettings() |
TransportChannelProvider |
getTransportChannelProvider() |
org.threeten.bp.Duration |
getWatchdogCheckInterval() |
WatchdogProvider |
getWatchdogProvider() |
abstract <B extends ClientSettings.Builder<SettingsT,B>> |
toBuilder() |
java.lang.String |
toString() |
protected ClientSettings(ClientSettings.Builder builder) throws java.io.IOException
java.io.IOException
public 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 java.lang.String getEndpoint()
public final java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public abstract <B extends ClientSettings.Builder<SettingsT,B>> B toBuilder()