Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10827

camel-twitter - The timeline should defer its first poll to after Camel is started

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.19.0
    • camel-twitter
    • None
    • Unknown

    Description

      If using twitter:timeline/mention then it polls in any mentions during starting the route. We should defer this to the first poll after the route is started, so Camel startup faster and let other routes startup quickly too, eg

      2017-02-14 11:23:07.853  INFO 15118 --- [           main] route1                                   : I was mentioned by Fri May 22 09:40:47 CEST 2015 (akoufoudakis) I just became a certified expert in Apache Camel (@cameltweet) development. Thanks @RedHatNL for making it possible. http://t.co/uBsZZ7c3QA
      2017-02-14 11:23:08.082  INFO 15118 --- [           main] route1                                   : I was mentioned by Wed Apr 15 15:31:58 CEST 2015 (akoufoudakis) Good to know Apache Camel (@cameltweet) is used by @netflix. http://t.co/2X34674nDH. Another accomplishment for the community.
      2017-02-14 11:23:08.282  INFO 15118 --- [           main] o.a.camel.spring.SpringCamelContext      : Route: route1 started and consuming from: twitter://timeline/mentions
      2017-02-14 11:23:08.282  INFO 15118 --- [           main] o.a.camel.spring.SpringCamelContext      : Total 1 routes, of which 1 are started.
      

      Those twitter mentions that are logged should come after the route is started

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: