Package org.teiid.dqp.internal.process

Examples of org.teiid.dqp.internal.process.ThreadReuseExecutor.wait()


      final ThreadReuseExecutor pool = new ThreadReuseExecutor("test", 1); //$NON-NLS-1$
      FutureWork<Boolean> work1 = new FutureWork<Boolean>(new Callable<Boolean>() {
        public Boolean call() throws Exception {
          synchronized (pool) {
            while (pool.getSubmittedCount() < 4) {
              pool.wait();
            }
        }
          return true;
        }
    }, 0);
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.