282283284285286287288289290291292
{ FutureLatch future = new FutureLatch(); executor.execute(future); while (!future.await(10000)) { HornetQServerLogger.LOGGER.timedOutStoppingPagingCursor(future, executor); } }
384385386387388389390391392393394
FutureLatch future = new FutureLatch(); executor.execute(future); if (!future.await(60000)) { HornetQServerLogger.LOGGER.pageStoreTimeout(address); } }
925926927928929930931932933934935
org.hornetq.utils.FutureLatch future = new FutureLatch(); sessionExecutor.execute(future); boolean ok = future.await(ClientConsumerImpl.CLOSE_TIMEOUT_MILLISECONDS); if (!ok) { HornetQLogger.LOGGER.timeOutWaitingForProcessing(); }
281282283284285286287288289290291
697698699700701702703704705706707
{ FutureLatch future = new FutureLatch(); getExecutor().execute(future); boolean result = future.await(timeout); if (!result) { HornetQServerLogger.LOGGER.queueBusy(this.name.toString(), timeout); }
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"); } }
392393394395396397398399400401402
public void flushExecutor() { FutureLatch future = new FutureLatch(); executor.execute(future); if (!future.await(10000)) { server.threadDump("Couldn't finish executor on " + this); } }
750751752753754755756757758759760
public void flushExecutors() { FutureLatch future = new FutureLatch(); executor.execute(future); while (!future.await(1000)) { HornetQServerLogger.LOGGER.timedOutFlushingExecutorsPagingCursor(this); } }
640641642643644645646647648649650
FutureLatch future = new FutureLatch(); messageQueue.getExecutor().execute(future); boolean ok = future.await(10000); if (!ok) { HornetQServerLogger.LOGGER.errorTransferringConsumer(); }