org.gcube.data.tml.proxies
Class DefaultTBinder

java.lang.Object
  extended by org.gcube.data.tml.proxies.DefaultTBinder
All Implemented Interfaces:
AsyncTBinder, TBinder

public class DefaultTBinder
extends Object
implements TBinder, AsyncTBinder

Default implementation of TBinder and AsyncTBinder.

Author:
Fabio Simeoni

Constructor Summary
DefaultTBinder(org.gcube.common.clients.delegates.ProxyDelegate<TBinderStub> delegate)
          Creates an instance with ProxyDelegate
 
Method Summary
 List<Binding> bind(BindRequest parameters)
          Binds one ore more data sources to T-Reader and/or T-Writer endpoints.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTBinder

public DefaultTBinder(org.gcube.common.clients.delegates.ProxyDelegate<TBinderStub> delegate)
Creates an instance with ProxyDelegate

Parameters:
delegate - the delegate
Method Detail

bind

public List<Binding> bind(BindRequest parameters)
Description copied from interface: TBinder
Binds one ore more data sources to T-Reader and/or T-Writer endpoints.

Specified by:
bind in interface TBinder
Parameters:
parameters - the binding parameters
Returns:
the bindings

bindAsync

public Future<List<Binding>> bindAsync(BindRequest parameters)
Description copied from interface: AsyncTBinder
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.

Specified by:
bindAsync in interface AsyncTBinder
Parameters:
parameters - the binding parameters
Returns:
the Future outcome

bindAsync

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

Specified by:
bindAsync in interface AsyncTBinder
Parameters:
parameters - the binding parameters
Throws:
RejectedExecutionException - if the call cannot be submitted for asynchronous execution


Copyright © 2014. All Rights Reserved.