/** * {@inheritDoc} */ @Override public void run() { thread = Thread.currentThread(); try { while (!cancelled) { // Check idleness with fixed delay (1 second). long currentTime = System.currentTimeMillis(); notifySessions(currentTime); try { Thread.sleep(1000); } catch (InterruptedException e) { // will exit the loop if interrupted from interrupt() } } } finally { thread = null; } }
/** * {@inheritDoc} */ @Override public void run() { thread = Thread.currentThread(); try { while (!cancelled) { // Check idleness with fixed delay (1 second). long currentTime = System.currentTimeMillis(); notifySessions(currentTime); try { Thread.sleep(1000); } catch (InterruptedException e) { // will exit the loop if interrupted from interrupt() } } } finally { thread = null; } }
public void run() { thread = Thread.currentThread(); try { while (!cancelled) { // Check idleness with fixed delay (1 second). long currentTime = System.currentTimeMillis(); notifySessions(currentTime); try { Thread.sleep(1000); } catch (InterruptedException e) { // will exit the loop if interrupted from interrupt() } } } finally { thread = null; } }
@Override protected IoFuture dispose0() throws Exception { // stop the idle checking task idleChecker.getNotifyingTask().cancel(); return null; }
/** * {@inheritDoc} */ @Override protected void dispose0() throws Exception { // stop the idle checking task idleChecker.getNotifyingTask().cancel(); unbind(); }
/** * {@inheritDoc} */ @Override protected void dispose0() throws Exception { // stop the idle checking task idleChecker.getNotifyingTask().cancel(); }
@Override protected IoFuture dispose0() throws Exception { // stop the idle checking task idleChecker.getNotifyingTask().cancel(); unbind(); return null; }
/** * {@inheritDoc} */ @Override protected void dispose0() throws Exception { // stop the idle checking task idleChecker.getNotifyingTask().cancel(); unbind(); }
/** * {@inheritDoc} */ @Override protected void dispose0() throws Exception { // stop the idle checking task idleChecker.getNotifyingTask().cancel(); }