T - the actual type of the interface extending this interfacepublic interface AzureConfigurable<T extends AzureConfigurable<T>>
| Modifier and Type | Method and Description |
|---|---|
T |
useHttpClientThreadPool(boolean useHttpClientThreadPool)
Sets whether to use the thread pool in OkHttp client or RxJava schedulers.
|
T |
withCallbackExecutor(Executor executor)
Sets the executor for async callbacks to run on.
|
T |
withConnectionPool(okhttp3.ConnectionPool connectionPool)
Sets the connection pool for the Http client.
|
T |
withConnectionTimeout(long timeout,
TimeUnit unit)
Set the connection timeout on the HTTP client.
|
T |
withDispatcher(okhttp3.Dispatcher dispatcher)
Sets the dispatcher used in OkHttp client.
|
T |
withInterceptor(okhttp3.Interceptor interceptor)
Plug in an interceptor into the HTTP pipeline.
|
T |
withLogLevel(LogLevel level)
Set the logging level on the HTTP client.
|
T |
withMaxIdleConnections(int maxIdleConnections)
Deprecated.
use
withConnectionPool(ConnectionPool) instead |
T |
withProxy(Proxy proxy)
Sets the proxy for the HTTP client.
|
T |
withProxyAuthenticator(okhttp3.Authenticator proxyAuthenticator)
Sets the proxy authenticator for the HTTP client.
|
T |
withReadTimeout(long timeout,
TimeUnit unit)
Set the read timeout on the HTTP client.
|
T |
withUserAgent(String userAgent)
Specify the user agent header.
|
T withLogLevel(LogLevel level)
level - the OkHttp logging levelT withInterceptor(okhttp3.Interceptor interceptor)
interceptor - the interceptor to plug inT withUserAgent(String userAgent)
userAgent - the user agent to useT withReadTimeout(long timeout, TimeUnit unit)
timeout - the timeout numeric valueunit - the time unit for the numeric valueT withConnectionTimeout(long timeout, TimeUnit unit)
timeout - the timeout numeric valueunit - the time unit for the numeric value@Deprecated T withMaxIdleConnections(int maxIdleConnections)
withConnectionPool(ConnectionPool) insteadmaxIdleConnections - the maximum idle connectionsT withConnectionPool(okhttp3.ConnectionPool connectionPool)
connectionPool - the OkHttp 3 connection pool to useT useHttpClientThreadPool(boolean useHttpClientThreadPool)
useHttpClientThreadPool - whether to use the thread pool in Okhttp client. Default is false.T withDispatcher(okhttp3.Dispatcher dispatcher)
dispatcher - the dispatcher to useT withCallbackExecutor(Executor executor)
executor - the executor to execute the callbacks.T withProxy(Proxy proxy)
proxy - the proxy to useT withProxyAuthenticator(okhttp3.Authenticator proxyAuthenticator)
proxyAuthenticator - the proxy authenticator to useCopyright © 2019. All rights reserved.