public class LoopingThreadManager
extends java.lang.Object
This is done internally, with a single start and stop method for the whole. You supply Runnable objects along with a Duration to indicate how often they should repeat. It combines those with the same Duration to reduce the total number of threads used and presumably reduce contention for resources that the Runnable access.
Copyright 2008 Partner Software, Inc.
| Constructor and Description |
|---|
LoopingThreadManager() |
public void addTask(Duration interval, java.lang.Runnable runnable)
public void start()
public void stop()