533534535536537538539540541542543
{ 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")); }
521522523524525526527528529530531
Future future = new Future(); messageQueue.getExecutor().execute(future); boolean ok = future.await(10000); if (!ok) { log.warn("Timed out waiting for executor to complete"); }
864865866867868869870871872873874
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"); }
392393394395396397398399400401402
Future future = new Future(); executor.execute(future); if (!future.await(60000)) { PagingStoreImpl.log.warn("Timed out on waiting PagingStore " + address + " to shutdown"); } }
258259260261262263264265266267268
Future future = new Future(); executor.execute(future); while (!future.await(10000)) { log.warn("Waiting cursor provider " + this + " to finish executors"); } }
276277278279280281282283284285286
415416417418419420421422423424425
{ Future future = new Future(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { throw new IllegalStateException("Timed out waiting for future to complete"); }
540541542543544545546547548549550
692693694695696697698699700701702
public void flushExecutors() { Future future = new Future(); executor.execute(future); while (!future.await(1000)) { PageSubscriptionImpl.log.warn("Waiting page cursor to finish executors - " + this); } }
588589590591592593594595596597598
Future future = new Future(); executor.execute(future); while (!future.await(5000)) { PageSubscriptionImpl.log.warn("Timeout on waiting cursor " + this + " to be closed"); } if (isPersistent.get())