|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.kernel.schedule.SimpleTaskReservation
class SimpleTaskReservation
Package-private utility implementation of TaskReservation.
These reservations are fairly light-weight, and assume that the queue
is unbounded and therefore doesn't actually track these reservations or
use them to actually reserve any space.
| Constructor Summary | |
|---|---|
SimpleTaskReservation(SchedulerQueue queue,
ScheduledTask task)
Creates an instance of SimpleTaskReservation. |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancels this reservation, releaseing the reserved space in the scheduler for the associated task or tasks. |
void |
use()
Uses the reservation, scheduling all associated tasks to run. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleTaskReservation(SchedulerQueue queue,
ScheduledTask task)
SimpleTaskReservation.
queue - the associated SchedulerQueuetask - the ScheduledTask being reserved| Method Detail |
|---|
public void cancel()
cancel in interface TaskReservationpublic void use()
use in interface TaskReservation
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||