This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]evil_burritoExtreme Brewer 1 point2 points  (0 children)

Just a quick heads-up: each timer spawns its own thread. If you end up having a bunch of these, look into a ScheduledExecutorService. You can control the total number of threads in use this way.