replace Thread.sleep() and thread locals used for handling IN-OUT
-----------------------------------------------------------------
Key: SWITCHYARD-312
URL:
https://issues.jboss.org/browse/SWITCHYARD-312
Project: SwitchYard
Issue Type: Enhancement
Components: core
Reporter: Keith Babo
Fix For: 0.2
A number of components are using code like this to handle the response from an InOut
exchange:
{noformat}
while (System.currentTimeMillis() < start + 15000) {
if (RESPONSE.get() != null) {
return;
}
try {
Thread.sleep(100);
} catch (InterruptedException e) {
continue;
}
}
{noformat}
We need to introduce core support for replacing this code with something that uses
wait/notify or similar.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira