public void pause() { run = false; synchronized (LISTREADER_INTERVAL) { LISTREADER_INTERVAL.notify(); } synchronized (this) { while (!exit) { try { wait(10); } catch (InterruptedException ignored) { } } } }