How can I implement a download rate limited in Java?

Posted by JohnWithoutArms on Stack Overflow See other posts from Stack Overflow or by JohnWithoutArms
Published on 2010-05-03T23:10:26Z Indexed on 2010/05/03 23:18 UTC
Read the original article Hit count: 184

Filed under:
|
|
|
|

Hello,

I'm going to implement a (simple) downloader application in Java as a personal exercise. It is going to run several jobs in different threads, in a way that I will be downloading a few files at the same time at all times during execution.

I want to be able to define a download rate limit that is shared between all the download jobs, but I don't know how to do it even for a single download task. How should I go about doing this? What are the solutions I should try implementing?

Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about networking