* This is an empty bit of code that just shows what a WorkerPool
* might look like. This isn't a great fit for this class, becasue
* Worker's can't have any access to the DOM.
*/
private void doWorkerPoolDemo() {
WorkerPool wp = null;
try {
wp = new WorkerPool(new MessageHandler() {
public void onMessageReceived(String message,
int srcWorker) {
Log.info("Message: " + message + " src:" + srcWorker);
}
});
wp.createWorkerFromString("");
} catch (GearsException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}