org.gcube.common.clients
Interface Client<S>

Type Parameters:
S - the type of the service
All Known Implementing Classes:
DiscoveryClient, PassThroughClient

public interface Client<S>

A generic client that makes Calls to a service.

Author:
Fabio Simeoni
See Also:
Call

Method Summary
<R> R
make(Call<S,R> call)
          Makes a Call to the service.
 

Method Detail

make

<R> R make(Call<S,R> call)
       throws Exception
Makes a Call to the service.

Type Parameters:
R - 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


Copyright © 2012. All Rights Reserved.