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

Inherits IDisposable.

Inherited by Org.Apache.REEF.Wake.Time.Runtime.RuntimeClock.

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 Run ()
 Start the Clock. More...
 

Member Function Documentation

◆ IsIdle()

bool Org.Apache.REEF.Wake.Time.IClock.IsIdle ( )

Clock is idle if it has no future alarms set

Returns
True if no future alarms are set, otherwise false

Implemented in Org.Apache.REEF.Wake.Time.Runtime.RuntimeClock.

◆ Run()

void Org.Apache.REEF.Wake.Time.IClock.Run ( )

Start the Clock.

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

Implemented in Org.Apache.REEF.Wake.Time.Runtime.RuntimeClock.

◆ ScheduleAlarm()

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

Schedule a TimerEvent at the given future offset

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

Implemented in Org.Apache.REEF.Wake.Time.Runtime.RuntimeClock.


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