Interface ParallelPoolProcessing.ProcessingTask
- Enclosing class:
- ParallelPoolProcessing
public static interface ParallelPoolProcessing.ProcessingTask
Interface that holds the main method for every call to process an element from the case base.
- Author:
- Maximilian Hoffmann
-
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(DataObject[] elements, int iteration) This method is concurrently called by the workers for each case in the case base.
-
Method Details
-
process
This method is concurrently called by the workers for each case in the case base. Please make sure that every interaction of this method with other objects is synchronized. See an example implementation inParallelLinearRetrieverImpl
.- Parameters:
elements
- a batch of cases from the case base to processiteration
- the iteration number of the current call, starting from 0
-