|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Represents a queue of Task objects. Arbitary task objects can be queue and then flushed when necessary. The flush will cause all tasks in the queue to execute.
Task| Method Summary | |
void |
addTask(Task task)
Adds a task to the end of the queue |
void |
clear()
Throw away all the tasks in the queue |
void |
flush()
Will execute every task in the queue |
java.sql.Timestamp |
getFlushStarted()
Obtains the time when the queue started flushing. |
java.util.Collection |
getTasks()
Get a Collection of the Tasks currently in the queue |
boolean |
isFlushing()
Returns true if the queue is currently flushing or false otherwise |
int |
size()
Obtains the current size of the queue |
| Method Detail |
public void flush()
public int size()
public void addTask(Task task)
task - the task to addpublic boolean isFlushing()
public java.sql.Timestamp getFlushStarted()
public void clear()
public java.util.Collection getTasks()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||