org.mobicents.media.server.impl.clock
Class Scheduler

java.lang.Object
  extended by org.mobicents.media.server.impl.clock.Scheduler
All Implemented Interfaces:
java.lang.Runnable

public class Scheduler
extends java.lang.Object
implements java.lang.Runnable

Author:
kulikov

Constructor Summary
Scheduler()
           
 
Method Summary
 LocalTask execute(org.mobicents.media.server.spi.clock.Task task)
           
 long getNanotime()
          Returns time in nanoseconds.
 long getTimestamp()
          Returns time in milliseconds.
 void run()
           
 void setTimer(org.mobicents.media.server.spi.clock.Timer timer)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scheduler

public Scheduler()
Method Detail

setTimer

public void setTimer(org.mobicents.media.server.spi.clock.Timer timer)

start

public void start()

stop

public void stop()

execute

public LocalTask execute(org.mobicents.media.server.spi.clock.Task task)

run

public void run()
Specified by:
run in interface java.lang.Runnable

getTimestamp

public long getTimestamp()
Returns time in milliseconds.

Returns:
time in milliseconds.

getNanotime

public long getNanotime()
Returns time in nanoseconds.

Returns:
time in nanoseconds.


Copyright © 2010. All Rights Reserved.