@Test void withConfigAndInvalidLeaseDurationShouldThrowException() { assertInvalidField(defaultConfigBuilder .withLeaseDuration(Duration.ofNanos(15)) .withRenewDeadline(Duration.ofNanos(10)) .withRetryPeriod(Duration.ofNanos(2)) .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();  }