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

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

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

add

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

Parameters:
o - the Object to add

size

int size()
The number of buffer in the queue


getItems

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


clear

void clear()
Clear all the objects from the buffer



Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.