public class

LocalFifoBuffer

extends Object
implements FifoBuffer
java.lang.Object
   ↳ com.atlassian.core.task.LocalFifoBuffer

Summary

Public Constructors
LocalFifoBuffer()
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
synchronized Object remove()
Get the oldest object from the buffer
int size()
The number of buffer in the queue
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.core.task.FifoBuffer

Public Constructors

public LocalFifoBuffer ()

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 synchronized 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