Interface IThreadPool

    • Method Detail

      • execute

        void execute​(java.lang.Runnable task)
        Execute a task in its own thread.
        Parameters:
        task - The task to execute.
      • executeForever

        void executeForever​(java.lang.Runnable task)
        Execute a task in its own thread. The pool expects the thread executing the task to never return. Preferably use this method if you want to permanently retrieve a thread e.g. for repeated blocking operations. Consider requesting the daemon version.
        Parameters:
        task - The task to execute.
      • dispose

        void dispose()
        Shutdown the thread pool.
      • isRunning

        boolean isRunning()
        Test if the thread pool is running.
      • addFinishListener

        void addFinishListener​(IChangeListener<java.lang.Void> listener)
        Add a finished listener.