public class MultiLangRecordProcessorFactory extends java.lang.Object implements IRecordProcessorFactory
MultiLangRecordProcessor's.| Constructor and Description |
|---|
MultiLangRecordProcessorFactory(java.lang.String command,
java.util.concurrent.ExecutorService executorService) |
MultiLangRecordProcessorFactory(java.lang.String command,
java.util.concurrent.ExecutorService executorService,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
IRecordProcessor |
createProcessor()
Returns a record processor to be used for processing data records for a (assigned) shard.
|
public MultiLangRecordProcessorFactory(java.lang.String command,
java.util.concurrent.ExecutorService executorService)
command - The command that will do processing for this factory's record processors.executorService - An executor service to use while processing inputs and outputs of the child process.public MultiLangRecordProcessorFactory(java.lang.String command,
java.util.concurrent.ExecutorService executorService,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
command - The command that will do processing for this factory's record processors.executorService - An executor service to use while processing inputs and outputs of the child process.objectMapper - An object mapper used to convert messages to json to be written to the child processpublic IRecordProcessor createProcessor()
IRecordProcessorFactorycreateProcessor in interface IRecordProcessorFactory