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

cluster-service : fire event on listener registration

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.21.0
    • Component/s: camel-core
    • Labels:
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: