E - the type of the element which should be inserted into the queue.public class CountOnFailedInsertBehavior<E> extends java.lang.Object implements InsertBehavior<E>
| Constructor and Description |
|---|
CountOnFailedInsertBehavior(java.util.concurrent.BlockingQueue<E> queue) |
| Modifier and Type | Method and Description |
|---|---|
long |
getNumFailedInserts() |
boolean |
insert(E element) |
java.lang.String |
toString() |
public CountOnFailedInsertBehavior(java.util.concurrent.BlockingQueue<E> queue)
public boolean insert(E element)
insert in interface InsertBehavior<E>element - element to be insertedtrue if the element after this element can be inserted, otherwise false.public long getNumFailedInserts()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright 2020 Kieker Project, http://kieker-monitoring.net