If this isn’t possible, could you suggest a better way to do this? I couldn’t find a method for it in ScheduledThreadPoolExecutor. basically what I’m trying to do is make this code be run 3 times then cancel the “timer.” I could probably use Swing Timer, but I don’t want to since its used for other stuff. It says in
Tag: threadpool
Naming threads and thread-pools of ExecutorService
Let’s say I have an application that utilizes the Executor framework as such When I run this application in the debugger, a thread is created with the following (default) name: Thread[pool-1-thread-1]. As you can see, this isn’t terribly useful and as far as I can tell, the Executor framework does not provide an easy way to name the created threads