I'd like to run a Listener in a Thread from a certain point of time on for a certain amount of time (some hours).
I found Timer and TimerTask classes, however JavaDoc tells me that TimerTasks should complete quickly, which is not the case for my Thread. Is there a better and easy possibility to achieve the task?
Thanks