Class GridWorkerPool


  • public class GridWorkerPool
    extends Object
    Pool of runnable workers. This class automatically takes care of error handling that has to do with executing a runnable task and ensures that all tasks are finished when stop occurs.
    • Constructor Detail

      • GridWorkerPool

        public GridWorkerPool​(Executor exec,
                              IgniteLogger log)
        Parameters:
        exec - Executor service.
        log - Logger to use.
    • Method Detail

      • join

        public void join​(boolean cancel)
        Waits for all workers to finish.
        Parameters:
        cancel - Flag to indicate whether workers should be cancelled before waiting for them to finish.