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

cluster-service : fire event on listener registration

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment