protected final long getWriteExpireTimeMS ( boolean created ) { try { Duration duration = created ? expiry . getExpiryForCreation ( ) : expiry . getExpiryForUpdate ( ) ; if ( duration == null ) { return Long . MIN_VALUE ; } else if ( duration . isZero ( ) ) { return 0L ; } else if ( duration . isEternal ( ) ) { return Long . MAX_VALUE ; } return duration . getAdjustedTime ( currentTimeMillis ( ) ) ; } catch ( Exception e ) { logger . log ( Level . WARNING , "Failed to get the policy's expiration time" , e ) ; return Long . MIN_VALUE ; } }
Returns the time when the entry will expire .