public interface

FifoBuffer

com.atlassian.core.task.FifoBuffer
Known Indirect Subclasses

Summary

Public Methods
void add(Object o)
Add an Object to the buffer
void clear()
Clear all the objects from the buffer
Collection getItems()
The buffer in the queue
Object remove()
Get the oldest object from the buffer
int size()
The number of buffer in the queue

Public Methods

public void add (Object o)

Add an Object to the buffer

Parameters
o the Object to add

public void clear ()

Clear all the objects from the buffer

public Collection getItems ()

The buffer in the queue

public Object remove ()

Get the oldest object from the buffer

Returns
  • the oldest Object, or null if the queue is empty

public int size ()

The number of buffer in the queue