Interface PulseReceiver


public interface PulseReceiver
A PulseReceiver can receive regular pulses from the MasterTimer. Removing receivers from the MasterTimer needs to be in-sync with the timePulse-iteration. The receiver is removed if timePulse returns true. The reason we do not use Callback or some other pre-existing interface is that we want an interface that takes a primitive long, whereas Callback would require a wrapped Long and would have some impact on performance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    timePulse(long now)
    Callback triggered to send regular pulses to the PulseReceiver
  • Method Details

    • timePulse

      void timePulse(long now)
      Callback triggered to send regular pulses to the PulseReceiver
      Parameters:
      now - Timestamp of the pulse.