Class ClientSettings<SettingsT extends ClientSettings<SettingsT>>


  • public abstract class ClientSettings<SettingsT extends ClientSettings<SettingsT>>
    extends java.lang.Object
    A base settings class to configure a client class.

    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.

    • Constructor Detail

      • ClientSettings

        protected ClientSettings​(ClientSettings.Builder builder)
                          throws java.io.IOException
        Constructs an instance of ClientSettings.
        Throws:
        java.io.IOException
    • Method Detail

      • getStubSettings

        public final StubSettings getStubSettings()
      • getBackgroundExecutorProvider

        public final ExecutorProvider getBackgroundExecutorProvider()
      • getInternalHeaderProvider

        protected final HeaderProvider getInternalHeaderProvider()
      • getClock

        public final com.google.api.core.ApiClock getClock()
      • getEndpoint

        public final java.lang.String getEndpoint()
      • getQuotaProjectId

        public final java.lang.String getQuotaProjectId()
      • getWatchdogProvider

        @Nullable
        public final WatchdogProvider getWatchdogProvider()
      • getWatchdogCheckInterval

        @Nonnull
        public final org.threeten.bp.Duration getWatchdogCheckInterval()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object