I want to change mina NioProcessor thread names because when I print thread names using log4j, they aren't very meaningful to me (e.g. NioProcessor-36, NioProcessor-42) especially when there are multiple Processors around. Is it possible?
Below solution offers custom thread names after NioProcessor threads.
Create an executor filter like below
Executor executor = Executors.newFixedThreadPool(1, new YourThreadFactory("namingConvention"))
acceptor.getFilterChain().addFirst("executor", executor)
If you already have an executor filter, then you will just give a thread factory as parameter.