A - the type of service addressespublic class DiscoveryDelegate<A,S> extends AbstractDelegate<A,S,DiscoveryConfig<A,S>>
ProxyDelegate that discovers service endpoints.
The delegates attempt to make Calls to endpoints cached in an EndpointCache.
If the calls fail, or the cache is empty, they execute a Query for endpoints and call the results in turn until the call succeeds or there are no
more endpoints to call. If the call succeeds with one endpoint, the delegates cache the endpoint in the EndpointCache.
Query,
EndpointCache| Constructor and Description |
|---|
DiscoveryDelegate(DiscoveryConfig<A,S> config)
|
public DiscoveryDelegate(DiscoveryConfig<A,S> config)
plugin - the pluginquery - the querycache - the cachepublic <V> V make(Call<S,V> call) throws Exception
ProxyDelegateCall to a given service endpoint.V - the type of the value returned from the callcall - the callException - if the call failsCopyright © 2017. All Rights Reserved.