public abstract class StubSettings<SettingsT extends StubSettings<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 |
StubSettings.Builder<SettingsT extends StubSettings<SettingsT>,B extends StubSettings.Builder<SettingsT,B>> |
| Modifier | Constructor and Description |
|---|---|
protected |
StubSettings(StubSettings.Builder builder)
Constructs an instance of StubSettings.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiClock |
getClock() |
CredentialsProvider |
getCredentialsProvider() |
String |
getEndpoint() |
ExecutorProvider |
getExecutorProvider() |
HeaderProvider |
getHeaderProvider() |
protected HeaderProvider |
getInternalHeaderProvider() |
org.threeten.bp.Duration |
getStreamWatchdogCheckInterval() |
WatchdogProvider |
getStreamWatchdogProvider() |
ApiTracerFactory |
getTracerFactory()
Gets the configured
ApiTracerFactory that will be used to generate traces for
operations. |
TransportChannelProvider |
getTransportChannelProvider() |
abstract StubSettings.Builder |
toBuilder() |
String |
toString() |
protected StubSettings(StubSettings.Builder builder)
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 getStreamWatchdogProvider()
@BetaApi(value="The surface for streaming is not stable yet and may change in the future.") @Nonnull public final org.threeten.bp.Duration getStreamWatchdogCheckInterval()
@BetaApi(value="The surface for tracing is not stable yet and may change in the future.") @Nonnull public ApiTracerFactory getTracerFactory()
ApiTracerFactory that will be used to generate traces for
operations.public abstract StubSettings.Builder toBuilder()