com.atlassian.core.task
Class LocalFifoBuffer

java.lang.Object
  extended bycom.atlassian.core.task.LocalFifoBuffer
All Implemented Interfaces:
FifoBuffer

public class LocalFifoBuffer
extends java.lang.Object
implements FifoBuffer


Constructor Summary
LocalFifoBuffer()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalFifoBuffer

public LocalFifoBuffer()
Method Detail

remove

public java.lang.Object remove()
Description copied from interface: FifoBuffer
Get the oldest object from the buffer

Specified by:
remove in interface FifoBuffer
Returns:
the oldest Object, or null if the queue is empty

add

public void add(java.lang.Object o)
Description copied from interface: FifoBuffer
Add an Object to the buffer

Specified by:
add in interface FifoBuffer
Parameters:
o - the Object to add

size

public int size()
Description copied from interface: FifoBuffer
The number of buffer in the queue

Specified by:
size in interface FifoBuffer

getItems

public java.util.Collection getItems()
Description copied from interface: FifoBuffer
The buffer in the queue

Specified by:
getItems in interface FifoBuffer

clear

public void clear()
Description copied from interface: FifoBuffer
Clear all the objects from the buffer

Specified by:
clear in interface FifoBuffer


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.