class BloomFilterDuplicateRemover implements DuplicateRemover {

    @Override
    public boolean isDuplicate(Request request, Task task) {
        boolean isDuplicate = bloomFilter.mightContain(getUrl(request));
        if (!isDuplicate) {
            bloomFilter.put(getUrl(request));
            counter.incrementAndGet();
        }
        return isDuplicate;
    }

    public  BloomFilterDuplicateRemover(int expectedInsertions);
    public  BloomFilterDuplicateRemover(int expectedInsertions, double fpp);

}