IntolerantThreadPoolExecutor intended for
submitting lines of input to be converted to beans.
| Modifier and Type | Field and Description |
|---|---|
| private final CompleteFileReader |
| Access | Constructor and Description |
|---|---|
| public | LineExecutor(boolean
Whether order should be preserved in the results orderedResults, Locale The locale to use for error messages errorLocale, CompleteFileReader<T> The thread that reads lines of input and feeds the
results to this Executor completeFileReader)The only constructor available for this class. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | checkExceptions()
Overrides com. Checks whether exceptions are available that should halt processing. |
| public void | prepare()
Overrides com. Prepares this Executor to receive jobs. |
| public void | submitLine(long
Which record in the input file is being processed lineNumber, MappingStrategy<? extends T> The mapping strategy to be used mapper, CsvToBeanFilter A filter to remove beans from the running, if necessary.
May be null. filter, List<BeanVerifier<T>> The list of verifiers to run on beans after creation verifiers, String[] The line of input to be transformed into a bean line, CsvExceptionHandler The handler for exceptions thrown during record
processing exceptionHandler)Submit one record for conversion to a bean. |
| completeFileReader | back to summary |
|---|---|
| private final CompleteFileReader<T> completeFileReader | |
| LineExecutor | back to summary |
|---|---|
| public LineExecutor(boolean orderedResults, Locale errorLocale, CompleteFileReader<T> completeFileReader) The only constructor available for this class.
| |
| checkExceptions | back to summary |
|---|---|
| protected void checkExceptions() Overrides com. Doc from com. Checks whether exceptions are available that should halt processing. This is the case with unrecoverable errors, such as parsing the input, or if exceptions in conversion should be thrown by request of the user.
| |
| prepare | back to summary |
|---|---|
| public void prepare() Overrides com. Doc from com. Prepares this Executor to receive jobs.
| |
| submitLine | back to summary |
|---|---|
| public void submitLine(long lineNumber, MappingStrategy<? extends T> mapper, CsvToBeanFilter filter, List<BeanVerifier<T>> verifiers, String[] line, CsvExceptionHandler exceptionHandler) Submit one record for conversion to a bean.
| |