851852853854855856857858859860861
{ Future future = new Future(); executor.execute(future); future.await(10000); } public void testConsumeWithFiltersAddAndRemoveConsumer() throws Exception {
329330331332333334335336337338339
Future future = new Future(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { log.warn("Timed out waiting for executor"); }
436437438439440441442443444445446
Future future = new Future(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { log.warn("Timed out waiting for executor to complete"); }
503504505506507508509510511512513
// 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"); }
424425426427428429430431432433434
{ Future future = new Future(); executor.execute(future); boolean ok = future.await(10000); if (!ok) { throw new IllegalStateException("Timed out waiting for future to complete"); }
614615616617618619620621622623624
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())
688689690691692693694695696697698
public void flushExecutors() { Future future = new Future(); executor.execute(future); while (!future.await(1000)) { PageSubscriptionImpl.log.warn("Waiting page cursor to finish executors - " + this); } }
189190191192193194195196197198199
Future future = new Future(); executor.execute(future); while (!future.await(10000)) { log.warn("Waiting cursor provider " + this + " to finish executors"); } }
207208209210211212213214215216217
401402403404405406407408409410411
Future future = new Future(); executor.execute(future); if (!future.await(60000)) { PagingStoreImpl.log.warn("Timed out on waiting PagingStore " + address + " to shutdown"); } }