|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TaskQueue
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 |
|---|
void flush()
int size()
void addTask(Task task)
task - the task to addboolean isFlushing()
java.sql.Timestamp getFlushStarted()
void clear()
java.util.Collection getTasks()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||