Limit Spring Webservice concurrent calls
<p>I would like to optimize and reduce REST-API usage abuse for my service.</p>

<p>So, is there any "out of the box" way to limit the amount of concurrent calls to a webserivce on java spring?</p>

<p>for instance, if I have this method below</p>

<pre><code>@RequestMapping(value="demo",method=RequestMethod.GET)
    public synchronized @ResponseBody ObjectNode getDemo()
    {
        logger.info("started.. demo ");
        ObjectNode node = om.createObjectNode().put("test", true);
        logger.info("end.. demo");
        return node;
    }
</code></pre>

<p>i will be limiting this service to only 1 user at time. but, how  about limiting it to 4 or 10 concurrent users?</p>

<p>Thanks :)</p>