Package com.github.cafapi.common.api
Interface ElectionFactoryProvider
- All Known Implementing Classes:
NullElectionFactoryProvider
public interface ElectionFactoryProvider
Simple boilerplate for providing an ElectionFactory.
-
Method Summary
Modifier and TypeMethodDescriptiongetElectionManager
(ConfigurationSource configurationSource) Acquire a new ElectionFactory instance.
-
Method Details
-
getElectionManager
ElectionFactory getElectionManager(ConfigurationSource configurationSource) throws ElectionException Acquire a new ElectionFactory instance.- Parameters:
configurationSource
- used to configure the ElectionFactory- Returns:
- a new ElectionFactory instance
- Throws:
ElectionException
- if the ElectionFactory could not be created
-