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

    Modifier and Type
    Method
    Description
    Returns the configuration of the proxy.
    <V> V
    make(Call<S,V> call)
    Makes a Call to a given service endpoint.
  • Method Details

    • make

      <V> V make(Call<S,V> call) throws Exception
      Makes a Call to 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