Interface Partible<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void afterRun()
      Is executed once after execute the method exec.
      void beforeRun()
      Is executed once before execute the method 'exec'.
      void run​(T object)
      Is executed once for each object in the array of objects passed as parameter in the exec method of the Parallelizer class.
    • Method Detail

      • beforeRun

        void beforeRun()
        Is executed once before execute the method 'exec'. It can be used to initialize resources.
      • run

        void run​(T object)
        Is executed once for each object in the array of objects passed as parameter in the exec method of the Parallelizer class. These executions are performed in a parallel way. Race conditions must be handle by the developer. This method is no thread safe.
        Parameters:
        object - Index of the test element.
      • afterRun

        void afterRun()
        Is executed once after execute the method exec. It can be used to close resources.