/** * Updates the attributes' expiration date to 'now' + 'ttl' (as returned by {@link #getTtl()}. * This method is called after attributes have been automatically updated. It can also be called after attribute * values have been manually updated using the setter methods. */ public void updateExpirationDate() { setExpirationDate( ttl<0 ?Long.MAX_VALUE :System.currentTimeMillis()+getTtl()); }