public void timeReached() { LookupThrottler.this.counter.clear(); } }
public void timeReached() { _counter.clear(); } }
public void timeReached() { FloodThrottler.this.counter.clear(); } }
public void timeReached() { NegativeLookupCache.this.counter.clear(); } }
public void timeReached() { RequestThrottler.this.counter.clear(); } }
public void timeReached() { ParticipatingThrottler.this.counter.clear(); } }
public void timeReached() { if (_totalMax > 0) _currentTotal.set(0); if (_max > 0) ConnThrottler.this.counter.clear(); } }
/** * @since 0.9.16 */ public void clear() { counter.clear(); synchronized(badDests) { badDests.clear(); } }
public static void clearCaches() { synchronized (v4Cache) { v4Cache.clear(); } synchronized (v6Cache) { v6Cache.clear(); } fails.clear(); }
public void timeReached() { if (stop) return; _badCounter.clear(); schedule(BAD_CLEAN_INTERVAL); } }
/** * Caller must synch * @since 0.9.9 */ private void locked_halt() { I2PServerSocket ss = _util.getServerSocket(); if (ss != null) { try { ss.close(); } catch(I2PException ioe) { } } _badCounter.clear(); _cleaner.cancel(); }
/** * @return null if not found */ private String query(String host, boolean isv6, List<String> toQuery) { for (String url : toQuery) { if (fails.count(url) > MAX_FAILS) continue; int tcode = isv6 ? V6_CODE : V4_CODE; String furl = url + "name=" + host + "&type=" + tcode; log("Fetching " + furl); baos.reset(); SSLEepGet eepget = new SSLEepGet(ctx, baos, furl, state); if (ctx.isRouterContext()) eepget.addStatusListener(this); else fetchStart = System.currentTimeMillis(); // debug String rv = fetch(eepget, host, isv6); if (rv != null) { fails.clear(url); return rv; } if (state == null) state = eepget.getSSLState(); // we treat all fails the same, whether server responded or not fails.increment(url); log("No result from " + furl); } return null; }
_blockedIPs.clear(); lastBlockedIPClear = now;
public void timeReached() { if (_totalMax > 0) _currentTotal.set(0); if (_max > 0) ConnThrottler.this.counter.clear(); } }