public long renew(String entryUid,String className,int objectType,long duration,boolean fromReplication,boolean origin,boolean isFromGateway) throws UnknownLeaseException, InternalSpaceException {
  try {
    extendLeasePeriod(entryUid,className,objectType,duration,fromReplication,origin,false,null,isFromGateway);
  }
 catch (  UnknownLeaseException unknownLeaseException) {
    if (_cacheManager.isCacheExternalDB() && objectType != ObjectTypes.NOTIFY_NULL_TEMPLATE && objectType != ObjectTypes.NOTIFY_TEMPLATE) {
      if (_logger.isLoggable(Level.FINE)) {
        _logger.log(Level.FINE,"Failed to renew lease of an entry belonging to external-data-source.",unknownLeaseException);
      }
    }
 else     throw unknownLeaseException;
  }
  return duration;
}

public long renew ( String entryUid , String className , int objectType , long duration , boolean fromReplication , boolean origin , boolean isFromGateway ) throws UnknownLeaseException , InternalSpaceException { try { extendLeasePeriod ( entryUid , className , objectType , duration , fromReplication , origin , false , null , isFromGateway ) ; } catch ( UnknownLeaseException unknownLeaseException ) { if ( _cacheManager . isCacheExternalDB ( ) && objectType != ObjectTypes . NOTIFY_NULL_TEMPLATE && objectType != ObjectTypes . NOTIFY_TEMPLATE ) { if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , "Failed to renew lease of an entry belonging to external-data-source." , unknownLeaseException ) ; } } else throw unknownLeaseException ; } return duration ; }
renews a lease for an additional period of time ( specified in milliseconds ) for a registered entry in this lease manager . this duration is not added to the original lease , but is used to determine a new expiration time for the existing lease . if the renewal is granted this is reflected in value returned by getexpiration . if the renewal fails , the lease is left intact for the same duration that was in force prior to the call to renew .
