kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Brambilla <davide.brambi...@moviri.com>
Subject Re: Kafka High Level Consumer Connector shuts down after 10 seconds
Date Wed, 26 Nov 2014 06:44:06 GMT
Hi,
   you are programatically shutting down the executor after 10 seconds

        try {
            Thread.sleep(10000);
        } catch (InterruptedException ie) {

        }
        example.shutdown();

if you do not execute this code your threads will run forever.

Davide B.
----------------------------------------------------------------------------------------
Davide Brambilla
ContentWise R&D
Moviri
davide.brambilla@moviri.com
phone: +39 02 49517001 mobile: 345 71 13 800
Moviri S.p.A. - Via Schiaffino, 11 - 20158 Milano (MI) – ITALY

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message