Hi Folks,
I have requirement that needs continuous polling for specific subscriber
implementation.
Thread subscriberDaemon = new Thread() {
public void run() {
while (true) {
if (fooLogic) {
//logic goes here...
} else {
return;
}
try {
Thread.sleep(500);
} catch (InterruptedException e) {
log.error("An Interrupted Exception in Subscriber thread.");
}
}
}
};
Since above created Thread is a low level implementation and may subjected
to the unmanageable resources; Is there any higher level Worker Thread
model implemented in Carbon platform? Or How can I barrow tomcat thread
pool through the Carbon APIs?
Thank you
--
With Regards,
*Rasika Perera*
Software Engineer
M: +94 71 680 9060 E: [email protected]
LinkedIn: http://lk.linkedin.com/in/rasika90
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev