m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/timer/TimerScheduler.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/timer/TimerScheduler.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/timer/TimerScheduler.java
index 6eef931..6408a52 100644
--- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/timer/TimerScheduler.java
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/timer/TimerScheduler.java
@@ -17,13 +17,16 @@ public class TimerScheduler {
TimerScheduler() {
this.timer = new Timer();
+ System.out.println("TimerScheduler instance initialized");
}
public void handle(TimerTask task, long delay, long period) {
this.timer.scheduleAtFixedRate(task, delay, period);
+ System.out.println("Task with delay " + delay + " and period " + period + " scheduled");
}
public void handle(TimerTask task, long delay) {
this.timer.schedule(task, delay);
+ System.out.println("Task with delay " + delay + " scheduled");
}
}