If you are taking about the names of the threads when the submitted tasks are running then I'd recommend using a ThreadGroup. You could also use a ThreadLocal but that sounds more like a hack.
To use the ThreadGroup you would need to inject your own ThreadFactory to the executor.
final ThreadGroup threadGroup = new ThreadGroup("someThreadPoolName"); threadPool = Executors.newFixedThreadPool(10, new ThreadFactory() { public Thread newThread(Runnable r) { Thread thread = new Thread(threadGroup, r); return thread; } });
Then a thread could do:
String myThreadPollName = Thread.currentThread().getThreadGroup().getName();