Class HeartbeatImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      HeartbeatImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void begin()
      Begins a new Heartbeat.
      void defer​(java.lang.Runnable command)
      Adds a new command to the current Heartbeat.
      void end()
      Executes all commands since the most recent Heartbeat.begin().
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • begin

        public void begin()
        Description copied from interface: Heartbeat
        Begins a new Heartbeat. Heartbeats nest. Every call to begin() should be matched by a call to Heartbeat.end().
        Specified by:
        begin in interface Heartbeat
      • defer

        public void defer​(java.lang.Runnable command)
        Description copied from interface: Heartbeat
        Adds a new command to the current Heartbeat. The command will be executed by Heartbeat.end().
        Specified by:
        defer in interface Heartbeat
        Parameters:
        command - command to be executed at the end of the heartbeat
        See Also:
        HeartbeatDeferred