Package org.apache.tomcat.websocket
Class BackgroundProcessManager
- java.lang.Object
-
- org.apache.tomcat.websocket.BackgroundProcessManager
-
public class BackgroundProcessManager extends java.lang.Object
Provides a background processing mechanism that triggers roughly once a second. The class maintains a thread that only runs when there is at least one instance ofBackgroundProcess
registered.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BackgroundProcessManager
getInstance()
void
register(BackgroundProcess process)
void
unregister(BackgroundProcess process)
-
-
-
Method Detail
-
getInstance
public static BackgroundProcessManager getInstance()
-
register
public void register(BackgroundProcess process)
-
unregister
public void unregister(BackgroundProcess process)
-
-