Uses of Class
org.kiwiproject.consul.Consul.Builder
Packages that use Consul.Builder
-
Uses of Consul.Builder in org.kiwiproject.consul
Methods in org.kiwiproject.consul that return Consul.BuilderModifier and TypeMethodDescriptionstatic Consul.BuilderConsul.builder()Creates a newConsul.Builderobject.Consul.Builder.withAclToken(String token) Sets the ACL token to be used with ConsulConsul.Builder.withBasicAuth(String username, String password) Sets the username and password to be used for basic authenticationConsul.Builder.withClientConfiguration(ClientConfig clientConfig) Sets the configuration for the clients.Consul.Builder.withClientEventCallback(ClientEventCallback callback) Sets the event callback for the clients.Consul.Builder.withConnectionPool(okhttp3.ConnectionPool connectionPool) Sets the ConnectionPool to be used by OkHttp ClientConsul.Builder.withConnectTimeoutMillis(long timeoutMillis) Connect timeout for OkHttpClientConsul.Builder.withConsulBookend(ConsulBookend consulBookend) Attaches aConsulBookendto each Consul request.Consul.Builder.withConsulFailoverInterceptor(ConsulFailoverInterceptor failoverInterceptor) Uses the given failover interceptor.Consul.Builder.withExecutorService(ExecutorService executorService) Sets the ExecutorService to be used by the internal task dispatcher.Consul.Builder.withFailoverInterceptor(ConsulFailoverStrategy strategy) Deprecated, for removal: This API element is subject to removal in a future version.Consul.Builder.withFailoverInterceptorUsingStrategy(ConsulFailoverStrategy strategy) Constructs a failover interceptor with the givenConsulFailoverStrategy.Consul.Builder.withHeaders(Map<String, String> headers) Sets headers to be included with each Consul request.Consul.Builder.withHostAndPort(com.google.common.net.HostAndPort hostAndPort) Sets the URL from aHostAndPortobject.Consul.Builder.withHostnameVerifier(HostnameVerifier hostnameVerifier) Sets theHostnameVerifierfor the client.Consul.Builder.withHttps(boolean withHttps) Use HTTPS connections for all requests.Consul.Builder.withMaxFailoverAttempts(int maxFailoverAttempts) Sets the maximum number of failover attempts that theConsulFailoverInterceptor, if one is set, should use.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.withMultipleHostAndPort(Collection<com.google.common.net.HostAndPort> hostAndPort, long blacklistTime, TimeUnit blacklistTimeUnit) Sets the list of hosts to contact if the current request target is unavailable.Consul.Builder.withMultipleHostAndPort(Collection<com.google.common.net.HostAndPort> hostAndPort, Duration blacklistTime) Sets the list of hosts to contact if the current request target is unavailable.Consul.Builder.withPing(boolean ping) Instructs the builder that the AgentClient should attempt a ping before returning the Consul instanceSets theProxyfor the client.Consul.Builder.withReadTimeoutMillis(long timeoutMillis) Read timeout for OkHttpClientConsul.Builder.withSslContext(SSLContext sslContext) Sets theSSLContextfor the client.Consul.Builder.withTokenAuth(String token) Sets the token used for authenticationConsul.Builder.withTrustManager(X509TrustManager trustManager) Sets theX509TrustManagerfor the client.Sets the URL from a string.Sets the URL from aURLobject.Consul.Builder.withWriteTimeoutMillis(long timeoutMillis) Write timeout for OkHttpClient
withFailoverInterceptorUsingStrategy(ConsulFailoverStrategy)