1 package com.atlassian.core.task;
2
3 import java.util.Collection;
4
5 public interface FifoBuffer
6 {
7 /**
8 * Get the oldest object from the buffer
9 * @return the oldest Object, or null if the queue is empty
10 */
11 Object remove();
12
13 /**
14 * Add an Object to the buffer
15 * @param o the Object to add
16 */
17 void add(Object o);
18
19 /**
20 * The number of buffer in the queue
21 */
22 int size();
23
24 /**
25 * The buffer in the queue
26 */
27 Collection getItems();
28
29 /**
30 * Clear all the objects from the buffer
31 */
32 void clear();
33 }