Browse Source

execute throws IOException

pull/110/head
Spencer Gibb 9 years ago
parent
commit
f85f5b0ecf
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 7
      spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/LoadBalancerClient.java

7
spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/LoadBalancerClient.java

@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
package org.springframework.cloud.client.loadbalancer;
import java.io.IOException;
import java.net.URI;
import org.springframework.cloud.client.ServiceInstance;
@ -30,7 +31,7 @@ public interface LoadBalancerClient { @@ -30,7 +31,7 @@ public interface LoadBalancerClient {
* @param serviceId the service id to look up the LoadBalancer
* @return a ServiceInstance that matches the serviceId
*/
public ServiceInstance choose(String serviceId);
ServiceInstance choose(String serviceId);
/**
* execute request using a ServiceInstance from the LoadBalancer for the specified
@ -41,7 +42,7 @@ public interface LoadBalancerClient { @@ -41,7 +42,7 @@ public interface LoadBalancerClient {
* @return the result of the LoadBalancerRequest callback on the selected
* ServiceInstance
*/
public <T> T execute(String serviceId, LoadBalancerRequest<T> request);
<T> T execute(String serviceId, LoadBalancerRequest<T> request) throws IOException;
/**
* Create a proper URI with a real host and port for systems to utilize.
@ -52,6 +53,6 @@ public interface LoadBalancerClient { @@ -52,6 +53,6 @@ public interface LoadBalancerClient {
* @param original a URI with the host as a logical service name
* @return a reconstructed URI
*/
public URI reconstructURI(ServiceInstance instance, URI original);
URI reconstructURI(ServiceInstance instance, URI original);
}

Loading…
Cancel
Save