Workers are designed to be run in a Thread or an ExecutorService. E.g.:
final Worker worker = new WorkerImpl(config, Worker.ALL_QUEUES, Arrays.asList("TestAction")); final Thread t = new Thread(worker); t.start(); Thread.yield(); ... worker.end(); t.join();@author Greg Haines
|
|
|
|