Class EvictingQueue<E>

java.lang.Object
org.drasyl.util.EvictingQueue<E>
Type Parameters:
E - the type of elements held in this queue
All Implemented Interfaces:
Iterable<E>, Collection<E>, Queue<E>

public class EvictingQueue<E> extends Object implements Queue<E>
A Queue that evicts head elements to ensure that the queue will not exceed its capacity when new elements are enqueued.