How can I implement a download rate limited in Java?

后端 未结 4 1068
小鲜肉
小鲜肉 2020-12-17 06:15

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 downl

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-17 06:47

    1. Send/Receive Data
    2. Sleep
    3. Repeat

    Thats basically how most limiters work (just like wget)

提交回复
热议问题