Class NullElectionFactory
java.lang.Object
com.github.cafapi.common.elections.Null.NullElectionFactory
- All Implemented Interfaces:
ElectionFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetElection
(String serviceReference, ElectionCallback callback) Request a handle class used to interact with a particular service election.
-
Constructor Details
-
NullElectionFactory
public NullElectionFactory()
-
-
Method Details
-
getElection
Description copied from interface:ElectionFactory
Request a handle class used to interact with a particular service election.- Specified by:
getElection
in interfaceElectionFactory
- Parameters:
serviceReference
- a unique handle for an election, typically a service namecallback
- the object that will be called upon the instance being elected/unelected- Returns:
- an object to interact with for a specific election
-