| 
||||||||||
| 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
Created by IntelliJ IDEA. User: Tomd Date: 26/04/2006 Time: 11:17:36 To change this template use File | Settings | File Templates.
| Field Summary | |
|---|---|
protected  FifoBuffer | 
buffer
 | 
| Constructor Summary | |
|---|---|
AbstractTaskQueue(FifoBuffer 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  | 
 java.sql.Timestamp | 
getFlushStarted()
Obtains the time when the queue started flushing.  | 
 java.util.Collection | 
getQueue()
Deprecated. use getTasks() instead.  | 
 java.util.Collection | 
getTasks()
Get a Collection of the Tasks currently in the queue  | 
protected  void | 
handleException(Task task,
                java.lang.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 buffer
| Constructor Detail | 
|---|
public AbstractTaskQueue(FifoBuffer buffer)
| Method Detail | 
|---|
public void flush()
TaskQueue
flush in interface TaskQueue
protected void handleException(Task task,
                               java.lang.Exception e)
public int size()
TaskQueue
size in interface TaskQueuepublic void addTask(Task task)
TaskQueue
addTask in interface TaskQueuetask - the task to addpublic java.util.Collection getQueue()
public boolean isFlushing()
TaskQueue
isFlushing in interface TaskQueuepublic java.sql.Timestamp getFlushStarted()
TaskQueue
getFlushStarted in interface TaskQueuepublic void clear()
TaskQueue
clear in interface TaskQueuepublic java.util.Collection getTasks()
TaskQueue
getTasks in interface TaskQueue
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||