E
- the type of the element which should be inserted into the queue.public class BlockOnFailedInsertBehavior<E> extends java.lang.Object implements InsertBehavior<E>
Constructor and Description |
---|
BlockOnFailedInsertBehavior(java.util.concurrent.BlockingQueue<E> queue) |
Modifier and Type | Method and Description |
---|---|
boolean |
insert(E element) |
java.lang.String |
toString() |
public BlockOnFailedInsertBehavior(java.util.concurrent.BlockingQueue<E> queue)
queue
- the blocking queue to use this insert behaviorpublic 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 java.lang.String toString()
toString
in class java.lang.Object
Copyright 2020 Kieker Project, http://kieker-monitoring.net