177178179180181182183184185186187
} @Override public void wakeup() throws InterruptedException { Thread.sleep(taskRunnerDelay); realTaskRunner.wakeup(); } }; } else { return realTaskRunnerFactory.createTaskRunner(task, name); }
102103104105106107108109110111112
"ActiveMQ Session: " + session.getSessionId()); } taskRunner = this.taskRunner; } } taskRunner.wakeup(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } else { while (iterate()) {
8687888990919293949596
public void run() { try { barrier.await(); for( int i=0; i < ENQUEUE_COUNT/WORKER_COUNT; i++ ) { queue.incrementAndGet(); runner.wakeup(); yield(); } } catch (BrokenBarrierException e) { }
9596979899100101102103104105
174175176177178179180181182183184
99100101102103104105106107108109
101102103104105106107108109110111