I have a change request for the interface of DefaultThreadPool. Should I
post as issue?
I would like to use a different BlockingQueue than what is currently
hardwired and unchangeable (LInkedBlockingQueue).
My main reason is to reduce memory allocation rate. A
LinkedBlockingQueue$Node object is allocated for every entry in the
LinkedBlockingQueue. I'd like to use an ArrayBlockingQueue instead, to
avoid allocating the Node objects.
SelectorHandlerRunner cancels the key on unexpected exceptions, which seems
to be the right thing for the case when the thread pool's execute throws a
RejectedExecutionRejection, basically shutting down connections for which
there isn't capacity.
Regards,
John