public class ConsulFailoverInterceptor extends Object implements okhttp3.Interceptor
| Constructor and Description |
|---|
ConsulFailoverInterceptor(Collection<com.google.common.net.HostAndPort> targets,
long timeout)
Default constructor for a set of hosts and ports
|
ConsulFailoverInterceptor(ConsulFailoverStrategy strategy)
Allows customization of the interceptor chain
|
public ConsulFailoverInterceptor(Collection<com.google.common.net.HostAndPort> targets, long timeout)
targets - public ConsulFailoverInterceptor(ConsulFailoverStrategy strategy)
strategy - public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept in interface okhttp3.InterceptorIOExceptionCopyright © 2019. All rights reserved.