gr.uoa.di.madgik.utils
Class MemoryFileBackedQueue<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
gr.uoa.di.madgik.utils.MemoryFileBackedQueue<E>
- All Implemented Interfaces:
- Iterable<E>, Collection<E>, Queue<E>
public class MemoryFileBackedQueue<E>
- extends AbstractQueue<E>
MemoryFileBackedQueue
public MemoryFileBackedQueue()
throws IOException
- Throws:
IOException
MemoryFileBackedQueue
public MemoryFileBackedQueue(int threshold)
throws IOException
- Throws:
IOException
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.