Examples of ban()


Examples of ru.decipher.proxy.impl.DefaultProxyManager.ban()

                    } catch (InterruptedException ignored) {
                    }
                    if (random.nextBoolean()) {
                        manager.blame(take);
                    } else {
                        manager.ban(take);
                    }
                    done.incrementAndGet();
                }
            }));
        }
View Full Code Here

Examples of ru.decipher.proxy.impl.DefaultProxyManager.ban()

    @Test
    public void testThatUpdateRateLimitWorksWell() throws Exception {
        final DefaultProxyManager manager = new DefaultProxyManager(new LocalhostNoProxyLoader(), 0, 0, 0, 1000);
        final HttpProxyConfig config = manager.take();
        manager.ban(config);
        long time = System.currentTimeMillis();
        manager.take();
        time = System.currentTimeMillis() - time;
        assertTrue("update rate limits failed", time >= 1000);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.