'Limiting max. concurrent FTP client connections in Java

I was wondering if there's a Java FTP client library, that can limit the max. concurrent connections or if there's a feasible way to implement this feature around commons-net?

The code snippets I found so far throttle on a byte throughput basis, but I wasn't able to find any examples that limit the concurrent connections, which in my case is the actual limit.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source