| PriorityQueue.java |
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.jms.util;
import java.util.Collection;
/**
*
* @author <a href="mailto:nathan@jboss.org">Nathan Phelps</a>
* @version $Revision: 1.1.1.1 $ $Date: 2003/06/07 02:18:28 $
*/
public interface PriorityQueue
{
public void enqueue(Object object);
public void enqueue(Collection collection);
public Object dequeue();
public Collection dequeue(int maximumItems);
public Object peek();
public Collection peek(int maximumItems);
public void purge();
public int size();
public boolean isEmpty();
}
| PriorityQueue.java |