org.apache.hadoop.hbase.util
Class BoundedArrayQueue<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
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
.
BoundedArrayQueue
public BoundedArrayQueue(int maxElements)
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.