diff --git a/extended/src/main/java/io/kubernetes/client/extended/leaderelection/LeaderElector.java b/extended/src/main/java/io/kubernetes/client/extended/leaderelection/LeaderElector.java index 302b378dce..a865f292f6 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/leaderelection/LeaderElector.java +++ b/extended/src/main/java/io/kubernetes/client/extended/leaderelection/LeaderElector.java @@ -107,22 +107,19 @@ public LeaderElector(LeaderElectionConfig config, Consumer exceptionH } /** - * Runs the leader election in foreground. The process will enter an - * acquisition loop trying to get a lease of the lock object set in - * configuration. The acquisition loop stops in either of these - * scenarios: + * Runs the leader election in foreground. The process will enter an acquisition loop trying to + * get a lease of the lock object set in configuration. The acquisition loop stops in either of + * these scenarios: * - * 1) An error occurs that prevents us from aquiring a lease. + *

1) An error occurs that prevents us from aquiring a lease. * - * 2) The LeaderElector successfully acquires leadership. At this - * point, we will enter a renewal loop where we will continuously - * renew the lease following the provided configuration. + *

2) The LeaderElector successfully acquires leadership. At this point, we will enter a + * renewal loop where we will continuously renew the lease following the provided configuration. * - * Note that in both cases the LeaderElector will NOT return to the - * acquisition loop. This is most relevant when a leader instance - * loses leadership as the LeaderElector will not try to re-acquire - * leadership. To do this, the caller is responsible for explicitly - * invoking the "run" method again. + *

Note that in both cases the LeaderElector will NOT return to the acquisition loop. This is + * most relevant when a leader instance loses leadership as the LeaderElector will not try to + * re-acquire leadership. To do this, the caller is responsible for explicitly invoking the "run" + * method again. * * @param startLeadingHook called when a LeaderElector client starts leading * @param stopLeadingHook called when a LeaderElector client stops leading @@ -132,22 +129,19 @@ public void run(Runnable startLeadingHook, Runnable stopLeadingHook) { } /** - * Runs the leader election in foreground. The process will enter an - * acquisition loop trying to get a lease of the lock object set in - * configuration. The acquisition loop stops in either of these - * scenarios: + * Runs the leader election in foreground. The process will enter an acquisition loop trying to + * get a lease of the lock object set in configuration. The acquisition loop stops in either of + * these scenarios: * - * 1) An error occurs that prevents us from aquiring a lease. + *

1) An error occurs that prevents us from aquiring a lease. * - * 2) The LeaderElector successfully acquires leadership. At this - * point, we will enter a renewal loop where we will continuously - * renew the lease following the provided configuration. + *

2) The LeaderElector successfully acquires leadership. At this point, we will enter a + * renewal loop where we will continuously renew the lease following the provided configuration. * - * Note that in both cases the LeaderElector will NOT return to the - * acquisition loop. This is most relevant when a leader instance - * loses leadership as the LeaderElector will not try to re-acquire - * leadership. To do this, the caller is responsible for explicitly - * invoking the "run" method again. + *

Note that in both cases the LeaderElector will NOT return to the acquisition loop. This is + * most relevant when a leader instance loses leadership as the LeaderElector will not try to + * re-acquire leadership. To do this, the caller is responsible for explicitly invoking the "run" + * method again. * * @param startLeadingHook called when a LeaderElector client starts leading * @param stopLeadingHook called when a LeaderElector client stops leading