276277278279280281282283284285286
// 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"); }
274275276277278279280281282283284
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"); } }
405406407408409410411412413414415
Future future = new Future(); executor.execute(future); if (!future.await(60000)) { PagingStoreImpl.log.warn("Timed out on waiting PagingStore " + address + " to shutdown"); } }
743744745746747748749750751752753
org.hornetq.utils.Future future = new Future(); sessionExecutor.execute(future); boolean ok = future.await(ClientConsumerImpl.CLOSE_TIMEOUT_MILLISECONDS); if (!ok) { ClientConsumerImpl.log.warn("Timed out waiting for handler to complete processing"); }
757758759760761762763764765766767
540541542543544545546547548549550
{ 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")); }
551552553554555556557558559560561
444445446447448449450451452453454
840841842843844845846847848849850
{ Future future = new Future(); executor.execute(future); future.await(10000); } public void testConsumeWithFiltersAddAndRemoveConsumer() throws Exception {