Class DefaultLeaderElectionService

java.lang.Object
org.apache.flink.runtime.leaderelection.DefaultLeaderElectionService
All Implemented Interfaces:
AutoCloseable, LeaderElectionDriver.Listener, LeaderElectionService

public class DefaultLeaderElectionService extends Object implements LeaderElectionService, LeaderElectionDriver.Listener, AutoCloseable
Default implementation for leader election service. Composed with different LeaderElectionDriver, we could perform a leader election for the contender, and then persist the leader information to various storage.

DefaultLeaderElectionService handles a single LeaderContender.