Package us.b3k.kafka.ws.transforms

Examples of us.b3k.kafka.ws.transforms.Transform


    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);
    }
View Full Code Here


    private final Properties configProps;
    private final Transform inputTransform;
    private KafkaProducer producer;

    static public KafkaProducerFactory create(Properties configProps, Class inputTransformClass) throws IllegalAccessException, InstantiationException {
        Transform inputTransform = (Transform)inputTransformClass.newInstance();
        inputTransform.initialize();

        return new KafkaProducerFactory(configProps, inputTransform);
    }
View Full Code Here

TOP

Related Classes of us.b3k.kafka.ws.transforms.Transform

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.