Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4477

LockRegistryLeaderInitiator Context getRole() method is missing

    Details

      Description

      Although we can set in the LockRegistryLeaderInitiator constructor the Candidate, there is no way to get back the candidate's role. I would expect that Context will provide access to this information, since there are several leader instances for each role assigned. For example:

       

      if (leaderInitiator.getContext().isLeader()) {
          String role = leaderInitiator.getContext().getRole();
      }
      

       

        Attachments

          Activity

            People

            • Assignee:
              grussell Gary Russell
              Reporter:
              pantelis.papapoulias Pantelis Papapoulias
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: