|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.core.task.AbstractTaskQueue
public abstract class AbstractTaskQueue
| Field Summary | |
|---|---|
protected FifoBuffer<Task> |
buffer
|
| Constructor Summary | |
|---|---|
AbstractTaskQueue(FifoBuffer<Task> buffer)
|
|
| 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 |
Timestamp |
getFlushStarted()
Obtains the time when the queue started flushing. |
Collection<Task> |
getQueue()
Deprecated. use getTasks() instead. |
Collection<Task> |
getTasks()
Get a Collection of the Tasks currently in the queue |
protected void |
handleException(Task task,
Exception e)
|
boolean |
isFlushing()
Returns true if the queue is currently flushing or false otherwise |
int |
size()
Obtains the current size of the queue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FifoBuffer<Task> buffer
| Constructor Detail |
|---|
public AbstractTaskQueue(FifoBuffer<Task> buffer)
| Method Detail |
|---|
public void flush()
TaskQueue
flush in interface TaskQueue
protected void handleException(Task task,
Exception e)
public int size()
TaskQueue
size in interface TaskQueuepublic void addTask(Task task)
TaskQueue
addTask in interface TaskQueuetask - the task to addpublic Collection<Task> getQueue()
public boolean isFlushing()
TaskQueue
isFlushing in interface TaskQueuepublic Timestamp getFlushStarted()
TaskQueue
getFlushStarted in interface TaskQueuepublic void clear()
TaskQueue
clear in interface TaskQueuepublic Collection<Task> getTasks()
TaskQueue
getTasks in interface TaskQueue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||