public class LoadBalancedService extends Object implements HttpService
Constructor and Description |
---|
LoadBalancedService(HttpLoadBalancer slb,
okhttp3.OkHttpClient client,
BuckEventBus eventBus) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
HttpResponse |
makeRequest(String path,
okhttp3.Request.Builder requestBuilder) |
public LoadBalancedService(HttpLoadBalancer slb, okhttp3.OkHttpClient client, BuckEventBus eventBus)
public HttpResponse makeRequest(String path, okhttp3.Request.Builder requestBuilder) throws IOException
makeRequest
in interface HttpService
IOException
public void close()
close
in interface HttpService
close
in interface AutoCloseable