@Test public void leaderElectorInitializesDatabase() { leaderElector.initialize(); assertThat(testableLeaderDatabase.initialized).isTrue(); }
@Override public void initialize() { leaderDatabase.initialize(); }
StandardLeaderElector implements LeaderElector, LeaderStatus { @Override public void initialize() { leaderDatabase.initialize(); } }
StandardLeaderElector implements LeaderElector, LeaderStatus { @Override public void initialize() { leaderDatabase.initialize(); } @Inject  StandardLeaderElector(LeaderDatabase leaderDatabase, Config config, Registry registry);  StandardLeaderElector(
      LeaderId leaderId,
      LeaderDatabase leaderDatabase,
      Config config,
      Registry registry,
      Map<ResourceId, LeaderId> resourceLeaders,
      Id leaderRemovalsCounterId,
      Id resourceLeaderGaugeId,
      Id resourceWithNoLeaderGaugeId
  ); }
StandardLeaderElector implements LeaderElector, LeaderStatus { @Override public void initialize() { leaderDatabase.initialize(); } @Inject  StandardLeaderElector(LeaderDatabase leaderDatabase, Config config, Registry registry);  StandardLeaderElector(
      LeaderId leaderId,
      LeaderDatabase leaderDatabase,
      Config config,
      Registry registry,
      Map<ResourceId, LeaderId> resourceLeaders,
      Id leaderRemovalsCounterId,
      Id resourceLeaderGaugeId,
      Id resourceWithNoLeaderGaugeId
  ); @Override boolean addResource(ResourceId resourceId); @Override LeaderId getLeaderFor(ResourceId resourceId); @Override Set<ResourceId> getResources(); @Override void initialize(); @Override boolean removeLeaderFor(ResourceId resourceId); @Override boolean removeResource(ResourceId resourceId); @Override void runElection(); @Override boolean hasLeadership(); @Override boolean hasLeadershipFor(ResourceId resourceId); }
StandardLeaderElector implements LeaderElector, LeaderStatus { @Override public void initialize() { leaderDatabase.initialize(); } @Inject  StandardLeaderElector(LeaderDatabase leaderDatabase, Config config, Registry registry);  StandardLeaderElector(
      LeaderId leaderId,
      LeaderDatabase leaderDatabase,
      Config config,
      Registry registry,
      Map<ResourceId, LeaderId> resourceLeaders,
      Id leaderRemovalsCounterId,
      Id resourceLeaderGaugeId,
      Id resourceWithNoLeaderGaugeId
  ); @Override boolean addResource(ResourceId resourceId); @Override LeaderId getLeaderFor(ResourceId resourceId); @Override Set<ResourceId> getResources(); @Override void initialize(); @Override boolean removeLeaderFor(ResourceId resourceId); @Override boolean removeResource(ResourceId resourceId); @Override void runElection(); @Override boolean hasLeadership(); @Override boolean hasLeadershipFor(ResourceId resourceId);  }