8889909192939495969798
Future future = new Future(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { Redistributor.log.warn("Timed out waiting for tasks to complete"); }
102103104105106107108109110111112
{ Future future = new Future(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { throw new IllegalStateException("Timed out waiting for executor to complete"); }
699700701702703704705706707708709
public void flushExecutors() { Future future = new Future(); executor.execute(future); while (!future.await(1000)) { PageSubscriptionImpl.log.warn("Waiting page cursor to finish executors - " + this); } }
426427428429430431432433434435436
{ Future future = new Future(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { log.warn("Couldn't finish waiting executors. Try increasing the thread pool size"); }
524525526527528529530531532533534
Future future = new Future(); messageQueue.getExecutor().execute(future); boolean ok = future.await(10000); if (!ok) { log.warn("Timed out waiting for executor to complete"); }
260261262263264265266267268269270
Future future = new Future(); executor.execute(future); while (!future.await(10000)) { log.warn("Waiting cursor provider " + this + " to finish executors"); } }
278279280281282283284285286287288
438439440441442443444445446447448
// Wait for any create objects runnable to complete Future future = new Future(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { BridgeImpl.log.warn("Timed out waiting to stop"); }
376377378379380381382383384385386
Future future = new Future(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { log.warn("Timed out waiting for executor"); }
483484485486487488489490491492493
Future future = new Future(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { log.warn("Timed out waiting for executor to complete"); }