org.gcube.data.tml.proxies
Interface AsyncTBinder

All Known Implementing Classes:
DefaultTBinder

public interface AsyncTBinder

An interface over remote T-Binder endpoints.

T-Binder endpoints bind given data sources to T-Reader and T-Writer endpoints. These give access to the bound sources under a tree-based model.

Author:
Fabio Simeoni
See Also:
TReaderClient, TWriterClient

Method Summary
 Future<List<Binding>> bindAsync(BindRequest parameters)
          Binds asynchronously to T-Reader and/or T-Writer services and returns a Future of the call outcome which clients can poll or use to cancel submission.
 Future<?> bindAsync(BindRequest parameters, org.gcube.common.clients.delegates.Callback<List<Binding>> callback)
          Binds asynchronously to T-Reader and/or T-Writer services and notifies a Callback of the outcome of the call
 

Method Detail

bindAsync

Future<?> bindAsync(BindRequest parameters,
                    org.gcube.common.clients.delegates.Callback<List<Binding>> callback)
Binds asynchronously to T-Reader and/or T-Writer services and notifies a Callback of the outcome of the call

Parameters:
parameters - the binding parameters
consumer - a callback for the asynchronous delivery of the outcome of the call
Throws:
RejectedExecutionException - if the call cannot be submitted for asynchronous execution

bindAsync

Future<List<Binding>> bindAsync(BindRequest parameters)
Binds asynchronously to T-Reader and/or T-Writer services and returns a Future of the call outcome which clients can poll or use to cancel submission.

Parameters:
parameters - the binding parameters
Returns:
the Future outcome
Throws:
RejectedExecutionException - if the call cannot be submitted for asynchronous execution


Copyright © 2014. All Rights Reserved.