com.atlassian.core.task
Interface FifoBuffer<T>

All Known Implementing Classes:
LocalFifoBuffer

public interface FifoBuffer<T>


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

Method Detail

remove

T remove()
Get the oldest object from the buffer

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

add

void add(T o)
Add an Object to the buffer

Parameters:
o - the Object to add

size

int size()
The number of buffer in the queue


getItems

Collection<T> getItems()
The buffer in the queue


clear

void clear()
Clear all the objects from the buffer



Copyright © 2015 Atlassian. All rights reserved.