281282283284285286287288289290291
{ FutureLatch future = new FutureLatch(); executor.execute(future); while (!future.await(10000)) { HornetQServerLogger.LOGGER.timedOutStoppingPagingCursor(future, executor); } }
10271028102910301031103210331034103510361037
org.hornetq.utils.FutureLatch future = new FutureLatch(); sessionExecutor.execute(future); boolean ok = future.await(ClientConsumerImpl.CLOSE_TIMEOUT_MILLISECONDS); if (!ok) { HornetQClientLogger.LOGGER.timeOutWaitingForProcessing(); }
385386387388389390391392393394395
public void flushExecutor() { FutureLatch future = new FutureLatch(); executor.execute(future); if (!future.await(10000)) { server.threadDump("Couldn't finish executor on " + this); } }
320321322323324325326327328329330
// 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(); }
638639640641642643644645646647648
{ FutureLatch future = new FutureLatch(); getExecutor().execute(future); boolean result = future.await(timeout); if (!result) { HornetQServerLogger.LOGGER.queueBusy(this.name.toString(), timeout); }
336337338339340341342343344345346
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"); } }
642643644645646647648649650651652
FutureLatch future = new FutureLatch(); messageQueue.getExecutor().execute(future); boolean ok = future.await(10000); if (!ok) { HornetQServerLogger.LOGGER.errorTransferringConsumer(); }
324325326327328329330331332333334
636637638639640641642643644645646