Apache REEF  0.16.0
Retainable Evaluator Execution Framework
Public Member Functions | List of all members
Org.Apache.REEF.Wake.Time.Runtime.RuntimeClock Class Reference

Inherits Org.Apache.REEF.Wake.Time.IClock.

Public Member Functions

void ScheduleAlarm (long offset, IObserver< Alarm > handler)
 Schedule a TimerEvent at the given future offset More...
 
bool IsIdle ()
 Clock is idle if it has no future alarms set More...
 
void Dispose ()
 Dispose of the clock and all scheduled alarms More...
 
void Run ()
 Start the RuntimeClock. More...
 

Member Function Documentation

◆ Dispose()

void Org.Apache.REEF.Wake.Time.Runtime.RuntimeClock.Dispose ( )
inline

Dispose of the clock and all scheduled alarms

◆ IsIdle()

bool Org.Apache.REEF.Wake.Time.Runtime.RuntimeClock.IsIdle ( )
inline

Clock is idle if it has no future alarms set

Returns
True if no future alarms are set, otherwise false

Implements Org.Apache.REEF.Wake.Time.IClock.

◆ Run()

void Org.Apache.REEF.Wake.Time.Runtime.RuntimeClock.Run ( )
inline

Start the RuntimeClock.

Clock will continue to run and handle events until it has been disposed.

Implements Org.Apache.REEF.Wake.Time.IClock.

◆ ScheduleAlarm()

void Org.Apache.REEF.Wake.Time.Runtime.RuntimeClock.ScheduleAlarm ( long  offset,
IObserver< Alarm handler 
)
inline

Schedule a TimerEvent at the given future offset

Parameters
offsetThe offset in the future to schedule the alarm, in msec
handlerThe IObserver to to be called

Implements Org.Apache.REEF.Wake.Time.IClock.


The documentation for this class was generated from the following file: