Class NullElectionFactory

java.lang.Object
com.github.cafapi.common.elections.Null.NullElectionFactory
All Implemented Interfaces:
ElectionFactory

public class NullElectionFactory extends Object implements ElectionFactory
  • Constructor Details

    • NullElectionFactory

      public NullElectionFactory()
  • Method Details

    • getElection

      public Election getElection(String serviceReference, ElectionCallback callback)
      Description copied from interface: ElectionFactory
      Request a handle class used to interact with a particular service election.
      Specified by:
      getElection in interface ElectionFactory
      Parameters:
      serviceReference - a unique handle for an election, typically a service name
      callback - the object that will be called upon the instance being elected/unelected
      Returns:
      an object to interact with for a specific election