public interface LeaderElectionDriverFactory
LeaderElectionDriver
.Modifier and Type | Method and Description |
---|---|
LeaderElectionDriver |
create(LeaderElectionDriver.Listener leaderElectionListener)
Creates a
LeaderElectionDriver for the given leader contender description. |
LeaderElectionDriver create(LeaderElectionDriver.Listener leaderElectionListener) throws Exception
LeaderElectionDriver
for the given leader contender description. Moreover,
it registers the given leader election listener with the service.leaderElectionListener
- listener for the callbacks of the LeaderElectionDriver
LeaderElectionDriver
instanceException
- if the creation failsCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.