gr.uoa.di.madgik.utils
Class MemoryFileBackedQueue<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by gr.uoa.di.madgik.utils.MemoryFileBackedQueue<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Queue<E>

public class MemoryFileBackedQueue<E>
extends AbstractQueue<E>


Constructor Summary
MemoryFileBackedQueue()
           
MemoryFileBackedQueue(int threshold)
           
 
Method Summary
 void destroy()
           
 Iterator<E> iterator()
           
 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

MemoryFileBackedQueue

public MemoryFileBackedQueue()
                      throws IOException
Throws:
IOException

MemoryFileBackedQueue

public MemoryFileBackedQueue(int threshold)
                      throws IOException
Throws:
IOException
Method Detail

offer

public boolean offer(E e)

poll

public E poll()

peek

public E peek()

size

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

iterator

public Iterator<E> iterator()
Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>
Specified by:
iterator in class AbstractCollection<E>

destroy

public void destroy()


Copyright © 2013. All Rights Reserved.