Some descriptive comments (not JavaDoc) to task classes

This commit is contained in:
Ivan Vilata-i-Balaguer 2016-04-07 17:51:24 +02:00
parent ad579bf7cc
commit 0068ffa416
3 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,8 @@ import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.TimeUnit;
// Helps configure listener objects that are run by the `UserThread` each second
// and can do per second, per minute and delayed second actions.
public class Clock {
private static final Logger log = LoggerFactory.getLogger(Clock.class);

View File

@ -7,6 +7,7 @@ import java.util.Set;
import java.util.TimerTask;
import java.util.concurrent.CopyOnWriteArraySet;
// Runs all listener objects periodically in a short interval.
public class MasterTimer {
private final static Logger log = LoggerFactory.getLogger(MasterTimer.class);
private static final java.util.Timer timer = new java.util.Timer();

View File

@ -27,6 +27,7 @@ import java.util.Random;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
// Helps run delayed and periodic actions in the caller thread.
public class UserThread {
private static final Logger log = LoggerFactory.getLogger(UserThread.class);
private static Class<? extends Timer> timerClass;