private final ExecutorService executorService = Executors.newCachedThreadPool();
private final Properties configProps;
private final Transform outputTransform;
static public KafkaConsumerFactory create(Properties configProps, Class outputTransformClass) throws IllegalAccessException, InstantiationException {
Transform outputTransform = (Transform)outputTransformClass.newInstance();
outputTransform.initialize();
return new KafkaConsumerFactory(configProps, outputTransform);
}