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 |
withAuxiliaryCredentials(com.microsoft.azure.credentials.AzureTokenCredentials... tokens)
Set the cross-tenant auxiliary credentials for Azure which can hold up to three.
|
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(com.microsoft.rest.LogLevel level)
Set the logging level on the HTTP client.
|
T |
withMaxIdleConnections(int maxIdleConnections)
Deprecated.
use
withConnectionPool(ConnectionPool) instead |
T |
withProtocols(List<okhttp3.Protocol> protocols)
Sets the HTTP network protocols for HTTP client.
|
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(com.microsoft.rest.LogLevel level)
level - the OkHttp logging levelT withInterceptor(okhttp3.Interceptor interceptor)
interceptor - the interceptor to plug inT withAuxiliaryCredentials(com.microsoft.azure.credentials.AzureTokenCredentials... tokens)
tokens - the AzureTokenCredentials listT 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 useT withProtocols(List<okhttp3.Protocol> protocols)
HTTP2 multiplexing could result in a single TCP connection to ARM instance. It could cause an undesirable side-effect that ARM throttling happens earlier than with HTTP1.1 with a connection pool.
protocols - the HTTP network protocols to use/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/