2014-03-25 15:57 GMT+01:00 Christopher Schultz <ch...@christopherschultz.net
>:

> What about when an Executor is used, where the number of threads can
> fluctuate (up to a maximum) but are (or can be) also shared with other
> connectors?
>
> This is not really related, the connector stops using a thread when the
connection closes, so if there are two java.io connectors sharing one
executor, the thread count is the current connection count between the two
connectors.

Blocking on all io is a characteristic of java.io, and it's on its way to
deprecation for that reason. This limitation should be accepted and
embraced, attempts to work around it are mostly counter productive: the
connector doesn't become more efficient, but its performance goes down.

Rémy

Reply via email to