Because the java platform provides no way to stop the thread, Quartz does not provide any way to stop the job in the thread.
Jobs should take care of themselves, since Quartz may not know what code is in the execute () method.
I would suggest using System.currentTimeMillis () at the beginning of your execute () method to write the current time, and then every time through the main job loop, use it again to get the current time. Look at the difference to see if your maximum time has passed, and if it comes from the main loop and exits from the execute () method.
jhouse
source share