/** * Used to renew the iterator's lease for an additional period of time, specified in * milliseconds. 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. <p> An expired iterator is an * <em>invalidated</em> iterator and will have no more entities added to it. Subsequent calls to * <code>next</code> on this iterator will always return <code>null</code>. * * @param duration the requested duration in milliseconds * @throws IllegalArgumentException if invalid lease expiration time * @throws LeaseDeniedException if the iterator's lease has already expired */ public void renew(long duration) throws IllegalArgumentException, LeaseDeniedException { if (_leasedIterator.isTerminated()) throw new LeaseDeniedException("Lease has already expired or been cancelled."); _leasedIterator.renew(duration); }
if (!xtnEntry.m_Active) { decrementUsed = false; throw new LeaseDeniedException( "renew:transaction not active any more at space-server transaction= " + st);