org.apache.hadoop.hbase.util
Class BoundedArrayQueue<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by org.apache.hadoop.hbase.util.BoundedArrayQueue<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Queue<E>

@InterfaceAudience.Private
public class BoundedArrayQueue<E>
extends AbstractQueue<E>

A bounded non-thread safe implementation of Queue.


Constructor Summary
BoundedArrayQueue(int maxElements)
           
 
Method Summary
 Iterator<E> iterator()
          Not implemented and will throw UnsupportedOperationException
 boolean offer(E e)
           
 E peek()
           
 E poll()
           
 int size()
           
 
Methods inherited from class java.util.AbstractQueue
add, addAll, clear, element, remove
 
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

BoundedArrayQueue

public BoundedArrayQueue(int maxElements)
Method Detail

size

public int size()
Specified by:
size in interface Collection<E>
Specified by:
size in class AbstractCollection<E>

iterator

public Iterator<E> iterator()
Not implemented and will throw UnsupportedOperationException

Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>
Specified by:
iterator in class AbstractCollection<E>

offer

public boolean offer(E e)

poll

public E poll()

peek

public E peek()


Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.