SSLEngine but without delegated task

169 Views Asked by At

Is there a way in Java to have the same functionality as SSLEngine but without a delegated task, because my program needs to handle a lot of connections and I wrote it in NIO with the purpose to use less ram, have more connections and have better performance, so if I use delegated tasks, it will defeat the purpose and my program will use even more ram as threads, in big quantities take quite a bit of space.

1

There are 1 best solutions below

2
On

In a word, no. There's no particular reason why you need 'big quantities' of threads of delegated tasks. One will do, if you accept the throughput implications.