@InterfaceAudience.Private @InterfaceStability.Evolving public class ProcedureSimpleRunQueue extends Object implements ProcedureRunnableSet
| 构造器和说明 |
|---|
ProcedureSimpleRunQueue() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
Procedure |
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.
|
public void addFront(Procedure proc)
ProcedureRunnableSetaddFront 在接口中 ProcedureRunnableSetproc - the Procedure to addpublic void addBack(Procedure proc)
ProcedureRunnableSetaddBack 在接口中 ProcedureRunnableSetproc - the Procedure to addpublic void yield(Procedure proc)
ProcedureRunnableSetyield 在接口中 ProcedureRunnableSetproc - the Procedure to add back to the listpublic Procedure poll()
ProcedureRunnableSetpoll 在接口中 ProcedureRunnableSetpublic void signalAll()
ProcedureRunnableSetsignalAll 在接口中 ProcedureRunnableSetpublic void clear()
ProcedureRunnableSetclear 在接口中 ProcedureRunnableSetpublic int size()
ProcedureRunnableSetsize 在接口中 ProcedureRunnableSetpublic void completionCleanup(Procedure proc)
ProcedureRunnableSetcompletionCleanup 在接口中 ProcedureRunnableSetproc - the Procedure that completed the execution.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.