Flink has the following comment in LeaderElectionService.java
What kind of contention does this class intent to handle?
* Interface for a service which allows to elect a leader among
a group of contenders.
* Prior to using this service, it has to be started calling
the start method. The start method
* takes the contender as a parameter. If there are multiple
contenders, then each contender has
* to instantiate its own leader election service.