From b42967848eef63d6d723197103abe050db4d82b2 Mon Sep 17 00:00:00 2001 From: zzz Date: Sat, 4 Dec 2010 20:39:51 +0000 Subject: [PATCH] javadoc --- core/java/src/net/i2p/util/SimpleScheduler.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/java/src/net/i2p/util/SimpleScheduler.java b/core/java/src/net/i2p/util/SimpleScheduler.java index 2b1ddf44f..f764debe9 100644 --- a/core/java/src/net/i2p/util/SimpleScheduler.java +++ b/core/java/src/net/i2p/util/SimpleScheduler.java @@ -69,6 +69,13 @@ public class SimpleScheduler { re.schedule(); } + /** + * Queue up the given event to be fired after timeoutMs and every + * timeoutMs thereafter. The TimedEvent must not do its own rescheduling. + * As all Exceptions are caught in run(), these will not prevent + * subsequent executions (unlike SimpleTimer, where the TimedEvent does + * its own rescheduling). + */ public void addPeriodicEvent(SimpleTimer.TimedEvent event, long timeoutMs) { addPeriodicEvent(event, timeoutMs, timeoutMs); }