/** * When do we check again next time? */ protected long checkCycle() { return getIdleMaxTime()/10; }
/** * Has this computer been idle for too long? */ protected boolean isIdleForTooLong(T c) { return System.currentTimeMillis()-c.getIdleStartMilliseconds() > getIdleMaxTime(); }
/** * When do we check again next time? */ protected long checkCycle() { return getIdleMaxTime()/10; }
/** * Has this computer been idle for too long? */ protected boolean isIdleForTooLong(T c) { return System.currentTimeMillis()-c.getIdleStartMilliseconds() > getIdleMaxTime(); }