@InterfaceAudience.Private @InterfaceStability.Evolving public interface ProcedureRunnableSet
Modifier and Type | Method and Description |
---|---|
void |
addBack(Procedure proc)
Inserts the specified element at the end of this queue.
|
void |
addFront(Procedure proc)
Inserts the specified element at the front of this queue.
|
void |
clear()
Removes all of the elements from this collection.
|
void |
completionCleanup(Procedure proc)
The procedure in execution completed.
|
Long |
poll()
Fetch one Procedure from the queue
|
void |
signalAll()
In case the class is blocking on poll() waiting for items to be added,
this method should awake poll() and poll() should return.
|
int |
size()
Returns the number of elements in this collection.
|
void |
yield(Procedure proc)
The procedure can't run at the moment.
|
void addFront(Procedure proc)
proc
- the Procedure to addvoid addBack(Procedure proc)
proc
- the Procedure to addvoid yield(Procedure proc)
proc
- the Procedure to add back to the listvoid completionCleanup(Procedure proc)
proc
- the Procedure that completed the execution.Long poll()
void signalAll()
int size()
void clear()