class BloomFilterHttpService {

    @Post("/{name}/check-and-set")
    public JsonNode checkAndSet(@Param String name,
                                @RequestObject JsonNode req)
            throws FilterNotFoundException {
        final JsonNode testingValue = checkNotNull("value", req.get("value"));
        checkParameter("value", testingValue.isTextual(), "expect string type");

        final BloomFilter filter = bloomFilterManager.ensureGetValidFilter(name);
        final boolean contain = !filter.set(testingValue.textValue());
        return BooleanNode.valueOf(contain);
    }

    public  BloomFilterHttpService(BloomFilterManager<?, ? super ExpirableBloomFilterConfig> bloomFilterManager);

}