KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > util > PriorityQueue


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.jms.util;
8
9 import java.util.Collection JavaDoc;
10
11 /**
12  *
13  * @author <a HREF="mailto:nathan@jboss.org">Nathan Phelps</a>
14  * @version $Revision: 1.1.1.1 $ $Date: 2003/06/07 02:18:28 $
15  */

16 public interface PriorityQueue
17 {
18     public void enqueue(Object JavaDoc object);
19
20     public void enqueue(Collection JavaDoc collection);
21
22     public Object JavaDoc dequeue();
23
24     public Collection JavaDoc dequeue(int maximumItems);
25
26     public Object JavaDoc peek();
27
28     public Collection JavaDoc peek(int maximumItems);
29
30     public void purge();
31
32     public int size();
33
34     public boolean isEmpty();
35 }
36
Popular Tags