users@jersey.java.net

[Jersey] Bandwidth throttling

From: cowwoc <cowwoc_at_bbs.darktech.org>
Date: Fri, 30 May 2014 11:52:13 -0400

Hi,

Is there a way to implement bandwidth throttling using Jersey? Meaning,
I want to limit the rate of incoming requests in terms of bytes per
seconds.
http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/util/concurrent/RateLimiter.html
looks promising, but it's not clear how combine this with a Filter.

To clarify: I want the Filter to cause the TCP/IP stack to block/reject
incoming bytes associated with this connection until I decide to unblock
the connection. Ideas?

Gili