8384858687888990919293
if ( ! closed ) { // not going to sync because who cares if it takes a little // longer to stop but we need to set cause before toggling // closed state or else check for closure can throw null cause cause = new LdapTimeLimitExceededException(); closed = true; } } if ( closed )
165166167168169170171172173174175
public boolean isClosed() { if ( System.currentTimeMillis() > startTime + millisToLive ) { // set cause first always cause = new LdapTimeLimitExceededException(); closed = true; } return closed; }
434435436437438439440441442443444
if ( searchCtls.getTimeLimit() > 0 ) { long runtime = System.currentTimeMillis() - startTime; if ( runtime > searchCtls.getTimeLimit() ) { throw new LdapTimeLimitExceededException(); } } if ( searchCtls.getCountLimit() > 0 ) {