com.atlassian.core.task
Interface FifoBuffer

All Known Implementing Classes:
LocalFifoBuffer

public interface FifoBuffer


Method Summary
 void add(java.lang.Object o)
          Add an Object to the buffer
 void clear()
          Clear all the objects from the buffer
 java.util.Collection getItems()
          The buffer in the queue
 java.lang.Object remove()
          Get the oldest object from the buffer
 int size()
          The number of buffer in the queue
 

Method Detail

remove

public java.lang.Object remove()
Get the oldest object from the buffer

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

add

public void add(java.lang.Object o)
Add an Object to the buffer

Parameters:
o - the Object to add

size

public int size()
The number of buffer in the queue


getItems

public java.util.Collection getItems()
The buffer in the queue


clear

public void clear()
Clear all the objects from the buffer



Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.