Package java.util.concurrent

Examples of java.util.concurrent.RunnableFuture


        final RunnableFuture asyncResult = new FutureInvoker(invoker);
        new Thread(asyncResult).start();
    }

    public Future executeAndReturnFuture(final String queueId, final Invoker invoker) {
        final RunnableFuture asyncResult = new FutureInvoker(invoker);
        new Thread(asyncResult).start();
        return asyncResult;
    }
View Full Code Here


  }

  @Override
  public Future<?> submit(Runnable task) throws RejectedExecutionException, NullPointerException
  {
    RunnableFuture future;

    if(task instanceof RunnableFuture)
    {
      future = (RunnableFuture) task;
    }
View Full Code Here

TOP

Related Classes of java.util.concurrent.RunnableFuture

Copyright © 2018 www.massapicom. 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.