315316317318319320321322323324325
// Wait for any create objects runnable to complete FutureLatch future = new FutureLatch(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { HornetQServerLogger.LOGGER.timedOutWaitingToStopBridge(); }
10281029103010311032103310341035103610371038
org.hornetq.utils.FutureLatch future = new FutureLatch(); sessionExecutor.execute(future); boolean ok = future.await(ClientConsumerImpl.CLOSE_TIMEOUT_MILLISECONDS); if (!ok) { HornetQClientLogger.LOGGER.timeOutWaitingForProcessing(); }
619620621622623624625626627628629
FutureLatch future = new FutureLatch(); messageQueue.getExecutor().execute(future); boolean ok = future.await(10000); if (!ok) { HornetQServerLogger.LOGGER.errorTransferringConsumer(); }
{ FutureLatch future = new FutureLatch(); getExecutor().execute(future); boolean result = future.await(timeout); if (!result) { HornetQServerLogger.LOGGER.queueBusy(this.name.toString(), timeout); }
424425426427428429430431432433434
public void flushExecutor() { FutureLatch future = new FutureLatch(); executor.execute(future); if (!future.await(10000)) { server.threadDump("Couldn't finish executor on " + this); } }
367368369370371372373374375376377
636637638639640641642643644645646
392393394395396397398399400401402
337338339340341342343344345346347
public void flushExecutor() { FutureLatch future = new FutureLatch(); executor.execute(future); if (!future.await(10000)) { server.threadDump("Couldn't flush ClusterManager executor (" + this + ") in 10 seconds, verify your thread pool size"); } }
281282283284285286287288289290291
{ FutureLatch future = new FutureLatch(); executor.execute(future); while (!future.await(10000)) { HornetQServerLogger.LOGGER.timedOutStoppingPagingCursor(future, executor); } }