public abstract class

AbstractTaskQueue

extends Object
implements TaskQueue
java.lang.Object
   ↳ com.atlassian.core.task.AbstractTaskQueue
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Created by IntelliJ IDEA. User: Tomd Date: 26/04/2006 Time: 11:17:36 To change this template use File | Settings | File Templates.

Summary

Fields
protected FifoBuffer buffer
Public Constructors
AbstractTaskQueue(FifoBuffer buffer)
Public Methods
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 getQueue()
This method is deprecated. use getTasks() instead.
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
Protected Methods
void handleException(Task task, Exception e)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.core.task.TaskQueue

Fields

protected FifoBuffer buffer

Public Constructors

public AbstractTaskQueue (FifoBuffer buffer)

Public Methods

public void addTask (Task task)

Adds a task to the end of the queue

Parameters
task the task to add

public void clear ()

Throw away all the tasks in the queue

public void flush ()

Will execute every task in the queue

public Timestamp getFlushStarted ()

Obtains the time when the queue started flushing. This returns null if the queue is not being flushed

Returns
  • the time when the queue started flushing

public Collection getQueue ()

This method is deprecated.
use getTasks() instead.

public Collection getTasks ()

Get a Collection of the Tasks currently in the queue

public boolean isFlushing ()

Returns true if the queue is currently flushing or false otherwise

Returns
  • true if the queue is currently flushing or false otherwise

public int size ()

Obtains the current size of the queue

Returns
  • the queue size

Protected Methods

protected void handleException (Task task, Exception e)