示例#1
0
 protected IFuture callAsync(final IRemoteCall call, final IRemoteCallable callable) {
   final AbstractExecutor executor = new ThreadsExecutor();
   return executor.execute(
       new IProgressRunnable() {
         public Object run(IProgressMonitor monitor) throws Exception {
           if (callable == null) throw new ECFException("Callable not found"); // $NON-NLS-1$
           return invokeRemoteCall(call, callable);
         }
       },
       null);
 }
示例#2
0
 protected void callAsync(
     IRemoteCall call, IRemoteCallable restClientCallable, IRemoteCallListener listener) {
   final AbstractExecutor executor = new ThreadsExecutor();
   executor.execute(new AsyncResult(call, restClientCallable, listener), null);
 }