public void setExpirationTime ( long expirationTime ) { if ( lock == SET ) { throw new IllegalStateException ( "EntryInfo is locked" ) ; } expirationTimeFlag = SET ; this . expirationTime = expirationTime ; this . timeLimit = ( int ) ( ( expirationTime - System . currentTimeMillis ( ) ) / 1000L ) ; }
This sets the expirationTime variable .