Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- synchronized(monitor) {
- [...]
- try {
- [...]
- Thread.sleep(config.getWaitTime()); // return 50
- } catch (SomeException e) {
- log.error(e.getMessage(), e);
- }
- [...]
- }
- try {
- [..]
- monitor.wait(config.getWaitTime());
- } catch (SomeException e) {
- log.error(e.getMessage(), e);
- }
- boolean wait = true;
- while (wait) {
- wait = false;
- monitor.wait(config.getWaitTime());
- }
Add Comment
Please, Sign In to add comment