org.jboss.messaging.util
Interface HeadInsertableQueue<T>
- Type Parameters:
T
-
- All Superinterfaces:
- java.lang.Iterable<T>
- All Known Implementing Classes:
- HeadInsertableConcurrentQueue
public interface HeadInsertableQueue<T>
- extends java.lang.Iterable<T>
Extends a Queue with a method to insert an element at the head of the queue
- Author:
- Tim Fox
offerFirst
void offerFirst(T object)
offerLast
void offerLast(T object)
poll
T poll()
peek
T peek()
clear
void clear()
iterator
java.util.Iterator<T> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<T>
size
int size()
Copyright © 2006 JBoss Inc. All Rights Reserved.