/** Returns the number of milliseconds until this task should expire. The return value will never be negative. */ final long getExpiryMillis() throws EntryNotFoundException { long extm = getExpirationTime() - getNow(); if (extm < 0L) return 0L; else return extm; }
/** * Return true if current task could have expired. * Return false if expiration is impossible. */ protected boolean isExpirationPossible() throws EntryNotFoundException { long expTime = getExpirationTime(); if (expTime > 0L && getNow() >= expTime) { return true; } return false; }
/** * Return true if current task could have expired. * Return false if expiration is impossible. */ protected boolean isExpirationPossible() throws EntryNotFoundException { long expTime = getExpirationTime(); if (expTime > 0L && getNow() >= expTime) { return true; } return false; }
/** Returns the number of milliseconds until this task should expire. The return value will never be negative. */ final long getExpiryMillis() throws EntryNotFoundException { long extm = getExpirationTime() - getNow(); if (extm < 0L) return 0L; else return extm; }