Interface ProxyDelegate<S>
-
- Type Parameters:
S- the type of service stubs
- All Known Implementing Classes:
AbstractDelegate,AsyncProxyDelegate,DirectDelegate,DiscoveryDelegate,MockDelegate
public interface ProxyDelegate<S>MakesCalls to service endpoints on behalf a service proxy.Delegates obtain the addresses of service endpoints according to some strategy, using information found in their
ProxyConfig.- Author:
- Fabio Simeoni
- See Also:
Call
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProxyConfig<?,S>config()Returns the configuration of the proxy.<V> Vmake(Call<S,V> call)Makes aCallto a given service endpoint.
-
-
-
Method Detail
-
make
<V> V make(Call<S,V> call) throws Exception
Makes aCallto a given service endpoint.- Type Parameters:
V- the type of the value returned from the call- Parameters:
call- the call- Returns:
- the value returned from the call
- Throws:
Exception- if the call fails
-
config
ProxyConfig<?,S> config()
Returns the configuration of the proxy.- Returns:
- the configuration
-
-