Package com.datasift.dropwizard.kafka.consumer

Examples of com.datasift.dropwizard.kafka.consumer.SynchronousConsumer


         */
        public KafkaConsumer build(final KafkaConsumerConfiguration configuration,
                                   final ExecutorService executor,
                                   final String name) {

            final SynchronousConsumer consumer = new SynchronousConsumer<T>(
                    Consumer.createJavaConsumerConnector(toConsumerConfig(configuration)),
                    configuration.getPartitions(),
                    decoder,
                    processor,
                    executor);
View Full Code Here


         */
        public KafkaConsumer build(final KafkaConsumerConfiguration configuration,
                                   final ExecutorService executor,
                                   final String name) {

            final SynchronousConsumer consumer = new SynchronousConsumer<T>(
                    Consumer.createJavaConsumerConnector(toConsumerConfig(configuration)),
                    configuration.getPartitions(),
                    decoder,
                    processor,
                    executor,
                    configuration.getInitialRecoveryDelay(),
                    configuration.getMaxRecoveryDelay(),
                    configuration.getRetryResetDelay(),
                    configuration.getMaxRecoveryAttempts(),
                    configuration.isShutdownOnFatal());

            //provide a reference to the Jetty server to the consumer
            environment.addServerLifecycleListener(new ServerLifecycleListener() {
                @Override
                public void serverStarted(Server server) {
                    consumer.setServer(server);
                }
            });

            // manage the consumer
            environment.manage(consumer);
View Full Code Here

         */
        public KafkaConsumer build(final KafkaConsumerConfiguration configuration,
                                   final ExecutorService executor,
                                   final String name) {

            final SynchronousConsumer consumer = new SynchronousConsumer<T>(
                    Consumer.createJavaConsumerConnector(toConsumerConfig(configuration)),
                    configuration.getPartitions(),
                    decoder,
                    processor,
                    executor,
                    configuration.getInitialRecoveryDelay(),
                    configuration.getMaxRecoveryDelay(),
                    configuration.getRetryResetDelay(),
                    configuration.getMaxRecoveryAttempts(),
                    configuration.isShutdownOnFatal(),
                    configuration.getShutdownGracePeriod());

            //provide a reference to the Jetty server to the consumer
            environment.addServerLifecycleListener(new ServerLifecycleListener() {
                @Override
                public void serverStarted(Server server) {
                    consumer.setServer(server);
                }
            });

            // manage the consumer
            environment.manage(consumer);
View Full Code Here

         */
        public KafkaConsumer build(final KafkaConsumerConfiguration configuration,
                                   final ExecutorService executor,
                                   final String name) {

            final SynchronousConsumer consumer = new SynchronousConsumer<T>(
                    Consumer.createJavaConsumerConnector(toConsumerConfig(configuration)),
                    configuration.getPartitions(),
                    decoder,
                    processor,
                    executor);
View Full Code Here

TOP

Related Classes of com.datasift.dropwizard.kafka.consumer.SynchronousConsumer

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.