E
- the type of the elements in the given queuepublic class BlockingQueueDecorator<E>
extends java.util.AbstractQueue<E>
implements java.util.concurrent.BlockingQueue<E>
Constructor and Description |
---|
BlockingQueueDecorator(java.util.Queue<E> q,
PutStrategy putStrategy,
TakeStrategy takeStrategy) |
Modifier and Type | Method and Description |
---|---|
int |
drainTo(java.util.Collection<? super E> c) |
int |
drainTo(java.util.Collection<? super E> c,
int maxElements) |
java.util.Iterator<E> |
iterator() |
boolean |
offer(E e) |
boolean |
offer(E e,
long timeout,
java.util.concurrent.TimeUnit unit) |
E |
peek() |
E |
poll() |
E |
poll(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
put(E e) |
int |
remainingCapacity() |
int |
size() |
E |
take() |
java.lang.String |
toString() |
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
public BlockingQueueDecorator(java.util.Queue<E> q, PutStrategy putStrategy, TakeStrategy takeStrategy)
public void put(E e) throws java.lang.InterruptedException
put
in interface java.util.concurrent.BlockingQueue<E>
java.lang.InterruptedException
public boolean offer(E e)
public E take() throws java.lang.InterruptedException
take
in interface java.util.concurrent.BlockingQueue<E>
java.lang.InterruptedException
public boolean offer(E e, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
offer
in interface java.util.concurrent.BlockingQueue<E>
java.lang.InterruptedException
public E poll(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
poll
in interface java.util.concurrent.BlockingQueue<E>
java.lang.InterruptedException
public int remainingCapacity()
remainingCapacity
in interface java.util.concurrent.BlockingQueue<E>
public int drainTo(java.util.Collection<? super E> c)
drainTo
in interface java.util.concurrent.BlockingQueue<E>
public int drainTo(java.util.Collection<? super E> c, int maxElements)
drainTo
in interface java.util.concurrent.BlockingQueue<E>
public java.util.Iterator<E> iterator()
public int size()
public java.lang.String toString()
toString
in class java.util.AbstractCollection<E>
Copyright 2017 Kieker Project, http://kieker-monitoring.net