Class 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 of BackgroundProcess registered.
    • Method Detail

      • getInstance

        public static BackgroundProcessManager getInstance()
        Returns the singleton instance of the BackgroundProcessManager.
        Returns:
        the singleton instance
      • register

        public void register​(BackgroundProcess process)
        Registers a background process for periodic execution.
        Parameters:
        process - the background process to register
      • unregister

        public void unregister​(BackgroundProcess process)
        Unregisters a previously registered background process.
        Parameters:
        process - the background process to unregister