553554555556557558559560561562563
{ Future future = new Future(); getExecutor().execute(future); boolean ok = future.await(10000); if (!ok) { log.warn("Couldn't finish waiting executors. Try increasing the thread pool size", new Exception ("trace")); }
279280281282283284285286287288289
// 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"); }
938939940941942943944945946947948
org.hornetq.utils.Future future = new Future(); sessionExecutor.execute(future); boolean ok = future.await(ClientConsumerImpl.CLOSE_TIMEOUT_MILLISECONDS); if (!ok) { ClientConsumerImpl.log.warn("Executor couldn't finish its operation before timeout : " + sessionExecutor.toString()); ClientConsumerImpl.log.warn("Timed out waiting for handler to complete processing", new Exception ("trace"));
405406407408409410411412413414415
Future future = new Future(); executor.execute(future); if (!future.await(60000)) { PagingStoreImpl.log.warn("Timed out on waiting PagingStore " + address + " to shutdown"); } }
294295296297298299300301302303304
public void flushExecutor() { Future future = new Future(); executor.execute(future); if (!future.await(10000)) { server.threadDump("Couldn't flush ClusterManager executor (" + this + ") in 10 seconds, verify your thread pool size"); } }
842843844845846847848849850851852
{ Future future = new Future(); executor.execute(future); future.await(10000); } public void testConsumeWithFiltersAddAndRemoveConsumer() throws Exception {
329330331332333334335336337338339
Future future = new Future(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { log.warn("Timed out waiting for executor"); }
436437438439440441442443444445446
Future future = new Future(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { log.warn("Timed out waiting for executor to complete"); }
391392393394395396397398399400401
Future future = new Future(); messageQueue.getExecutor().execute(future); boolean ok = future.await(10000); if (!ok) { log.warn("Timed out waiting for executor"); }
506507508509510511512513514515516
Future future = new Future(); messageQueue.getExecutor().execute(future); boolean ok = future.await(10000); if (!ok) { log.warn("Timed out waiting for executor to complete"); }