A - the of service addressesS - the type of service proxiespublic final class DirectDelegate<A,S> extends AbstractDelegate<A,S,EndpointConfig<A,S>> implements ProxyDelegate<S>
ProxyDelegate that sends Calls to service endpoints at known addresses.
This is a no-op ProxyDelegate, i.e. it executes the Call interface and converts its faults.
It exists to support uniform programming against the ProxyDelegate interface.
| Constructor and Description |
|---|
DirectDelegate(EndpointConfig<A,S> config)
Creates an instance with a
ProxyPlugin and an endpoint address. |
| Modifier and Type | Method and Description |
|---|---|
<V> V |
make(Call<S,V> call)
Makes a
Call to a given service endpoint. |
config, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfigpublic DirectDelegate(EndpointConfig<A,S> config)
ProxyPlugin and an endpoint address.plugin - the pluginaddress - the addresspublic <V> V make(Call<S,V> call) throws Exception
ProxyDelegateCall to a given service endpoint.make in interface ProxyDelegate<S>V - the type of the value returned from the callcall - the callException - if the call failsCopyright © 2017. All Rights Reserved.