Interface ProxyDelegate<S>
- Type Parameters:
S- the type of service stubs
- All Known Implementing Classes:
AbstractDelegate,AsyncProxyDelegate,DirectDelegate,DiscoveryDelegate,MockDelegate
public interface ProxyDelegate<S>
Makes
Calls 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:
-
Method Summary
-
Method Details
-
make
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
-