|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Scheduler
| Method Summary | |
|---|---|
long |
getCurrentTime()
This returns the current time for the scheduler |
int |
getStatus()
Returns the current of this fiber. |
void |
pause()
Pauses the scheduler if it is current running. |
void |
resume()
Resumes the scheduler if it has been paused. |
void |
schedule(long interval,
ReadyRunnable runnable)
This method is used to schedule a ready runnable in the system. |
void |
start()
Starts the fiber. |
void |
stop()
Stops the fiber. |
| Method Detail |
|---|
void schedule(long interval,
ReadyRunnable runnable)
schedule in interface ScheduleTimerinterval - The queue to add the runnable to.runnable - The element to run when interval expires.
RuntimeException - Thrown if an error occurs adding the element to the queue.long getCurrentTime()
getCurrentTime in interface Timervoid start()
IllegalStateException - Thrown if the fiber is already running.void stop()
IllegalStateException - Throws if the fiber has never been started.void pause()
IllegalStateException - Throws if the operation could not be completed due to the
fiber's state.void resume()
IllegalStateException - Throws if the operation could not be completed due to the
fiber's state.int getStatus()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||