| Package | Description |
|---|---|
| com.orbitz.consul |
| Modifier and Type | Method and Description |
|---|---|
static Consul.Builder |
Consul.builder()
Creates a new
Consul.Builder object. |
Consul.Builder |
Consul.Builder.withAclToken(String token)
Sets the ACL token to be used with Consul
|
Consul.Builder |
Consul.Builder.withBasicAuth(String username,
String password)
Sets the username and password to be used for basic authentication
|
Consul.Builder |
Consul.Builder.withClientConfiguration(ClientConfig clientConfig)
Sets the configuration for the clients.
|
Consul.Builder |
Consul.Builder.withClientEventCallback(ClientEventCallback callback)
Sets the event callback for the clients.
|
Consul.Builder |
Consul.Builder.withConnectionPool(okhttp3.ConnectionPool connectionPool)
Sets the ConnectionPool to be used by OkHttp Client
By default, an ConnectionPool is created internally.
|
Consul.Builder |
Consul.Builder.withConnectTimeoutMillis(long timeoutMillis)
Connect timeout for OkHttpClient
|
Consul.Builder |
Consul.Builder.withConsulBookend(ConsulBookend consulBookend)
Attaches a
ConsulBookend to each Consul request. |
Consul.Builder |
Consul.Builder.withExecutorService(ExecutorService executorService)
Sets the ExecutorService to be used by the internal tasks dispatcher.
|
Consul.Builder |
Consul.Builder.withFailoverInterceptor(ConsulFailoverStrategy strategy)
Constructs a failover interceptor with the given
ConsulFailoverStrategy. |
Consul.Builder |
Consul.Builder.withHeaders(Map<String,String> headers)
Sets headers to be included with each Consul request.
|
Consul.Builder |
Consul.Builder.withHostAndPort(com.google.common.net.HostAndPort hostAndPort)
Sets the URL from a
HostAndPort object. |
Consul.Builder |
Consul.Builder.withHostnameVerifier(HostnameVerifier hostnameVerifier)
Sets the
HostnameVerifier for the client. |
Consul.Builder |
Consul.Builder.withMultipleHostAndPort(Collection<com.google.common.net.HostAndPort> hostAndPort,
long blacklistTimeInMillis)
Sets the list of hosts to contact if the current request target is
unavailable.
|
Consul.Builder |
Consul.Builder.withPing(boolean ping)
Instructs the builder that the AgentClient should attempt a ping before returning the Consul instance
|
Consul.Builder |
Consul.Builder.withProxy(Proxy proxy)
Sets the
Proxy for the client. |
Consul.Builder |
Consul.Builder.withReadTimeoutMillis(long timeoutMillis)
Read timeout for OkHttpClient
|
Consul.Builder |
Consul.Builder.withSslContext(SSLContext sslContext)
Sets the
SSLContext for the client. |
Consul.Builder |
Consul.Builder.withTrustManager(X509TrustManager trustManager)
Sets the
X509TrustManager for the client. |
Consul.Builder |
Consul.Builder.withUrl(String url)
Sets the URL from a string.
|
Consul.Builder |
Consul.Builder.withUrl(URL url)
Sets the URL from a
URL object. |
Consul.Builder |
Consul.Builder.withWriteTimeoutMillis(long timeoutMillis)
Write timeout for OkHttpClient
|
Copyright © 2019. All rights reserved.