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