Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Utility method that returns when this.closed is true. Throws an exception
- // if the timeout is reached.
- public synchronized void waitForClose(final long timeoutMillis) throws Exception {
- if(!closed) {
- wait(timeoutMillis);
- if(!closed)
- throw new Exception("MockResponseSender could not be closed");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement