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

cluster-service : fire event on listener registration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.21.0
    • camel-core
    • Unknown

    Description

      As today listeners registered to a cluster view may not be invoked if the view is elected as leader before the registration so the patter is:

      clusterView.addListener(...).
      if (clusterView.getLocalMember().isLeader()) {
          doSomething();
      }
      

      Which is boring,

      Attachments

        Activity

          People

            lb Luca Burgazzoli
            lb Luca Burgazzoli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: