Interface BallotReceiver

All Superinterfaces:
OsidReceiver

public interface BallotReceiver extends OsidReceiver

The candidate receiver is the consumer supplied interface for receiving notifications pertaining to new, updated or deleted Ballot objects.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    changedBallots(Id notificationId, IdList ballotIds)
    The callback for notification of updated ballots.
    void
    deletedBallots(Id notificationId, IdList ballotIds)
    the callback for notification of deleted ballots.
    void
    newBallots(Id notificationId, IdList ballotIds)
    The callback for notifications of new candidates.

    Methods inherited from interface OsidReceiver

    down, up
    Modifier and Type
    Method
    Description
    void
    The callback for notifications that the notification bus is not operating.
    void
    up()
    The callback for notifications that the notification bus is operational.
  • Method Details

    • newBallots

      void newBallots(Id notificationId, IdList ballotIds)
      The callback for notifications of new candidates.
      Parameters:
      notificationId - the notification Id
      ballotIds - the Ids of the new Ballots
      Compliance:
      mandatory - This method must be implemented.
    • changedBallots

      void changedBallots(Id notificationId, IdList ballotIds)
      The callback for notification of updated ballots.
      Parameters:
      notificationId - the notification Id
      ballotIds - the Ids of the updated Ballots
      Compliance:
      mandatory - This method must be implemented.
    • deletedBallots

      void deletedBallots(Id notificationId, IdList ballotIds)
      the callback for notification of deleted ballots.
      Parameters:
      notificationId - the notification Id
      ballotIds - the Ids of the deleted Ballots
      Compliance:
      mandatory - This method must be implemented.