| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| BinTimer |
|
| 1.0;1 |
| 1 | package org.webslinger.util; | |
| 2 | ||
| 3 | import java.util.concurrent.TimeUnit; | |
| 4 | ||
| 5 | import org.webslinger.lang.ExecutionPool; | |
| 6 | ||
| 7 | 0 | public final class BinTimer { |
| 8 | public static void schedule(Runnable run, long delay) { | |
| 9 | 0 | ExecutionPool.schedule(run, delay, TimeUnit.MILLISECONDS); |
| 10 | 0 | } |
| 11 | ||
| 12 | public static void scheduleRepeat(Runnable run, long delay) { | |
| 13 | 0 | ExecutionPool.scheduleWithFixedDelay(run, delay, delay, TimeUnit.MILLISECONDS); |
| 14 | 0 | } |
| 15 | } |