@Test void withConfigAndInvalidRenewDeadlineComparedToRetryPeriodShouldThrowException() { assertInvalidField(defaultConfigBuilder .withRenewDeadline(Duration.ofSeconds(1)).withRetryPeriod(Duration.ofMillis(8000L)).build() ); }
public LeaderElector<C> build() { return new LeaderElector<>(client, leaderElectionConfig); }
LeaderElectorBuilder { public LeaderElector<C> build() { return new LeaderElector<>(client, leaderElectionConfig); } }
LeaderElectorBuilder { public LeaderElector<C> build() { return new LeaderElector<>(client, leaderElectionConfig); } LeaderElectorBuilder(C client); }
LeaderElectorBuilder { public LeaderElector<C> build() { return new LeaderElector<>(client, leaderElectionConfig); } LeaderElectorBuilder(C client); LeaderElectorBuilder<C> withConfig(LeaderElectionConfig leaderElectionConfig); LeaderElector<C> build(); }
LeaderElectorBuilder { public LeaderElector<C> build() { return new LeaderElector<>(client, leaderElectionConfig); } LeaderElectorBuilder(C client); LeaderElectorBuilder<C> withConfig(LeaderElectionConfig leaderElectionConfig); LeaderElector<C> build();  }