This project has retired. For details please refer to its Attic page.
Apache REEF: Org.Apache.REEF.Wake.Time.Runtime.RuntimeClock Class Reference
Apache REEF  0.15.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

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

Member Function Documentation

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

Dispose of the clock and all scheduled alarms

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

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

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.

void Org.Apache.REEF.Wake.Time.Runtime.RuntimeClock.RegisterObserver< U > ( IObserver< U >  observer)
inline

Register the IObserver for the particular Time event.

Parameters
observerThe handler to register
Type Constraints
U :Time 
override void Org.Apache.REEF.Wake.Time.Runtime.RuntimeClock.Run ( )
inlinevirtual

Start the RuntimeClock.

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

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

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

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: