Examples of IFuture


Examples of org.eclipse.equinox.concurrent.future.IFuture

      return this.properties;
    }
  }

  protected IPresence createIPresence(final Presence xmppPresence) {
    final IFuture asyncResult = new ThreadsExecutor().execute(
        new IProgressRunnable() {
          public Object run(IProgressMonitor monitor)
              throws Exception {
            return getVCardForPresence(xmppPresence);
          }
View Full Code Here

Examples of org.eclipse.equinox.concurrent.future.IFuture

    final Object o = remoteReferences[0].getProperty(SERVICE_IMPORTED);
    assertNotNull(o);
    assertTrue(o instanceof IRemoteService);
    final IRemoteService rs = (IRemoteService) o;
    // Call asynchronously
    final IFuture futureResult = rs.callAsync(createRemoteCall());

    // now get result from futureResult
    final Object result = futureResult.get();
    Trace.trace(Activator.PLUGIN_ID, "callSync.doStuff1 result=" + result);
    assertStringResultValid(result, TestServiceInterface1.TEST_SERVICE_STRING1);
    endTest("testCallFuture");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.