Package kieker.monitoring.queue.behavior
Class BlockOnFailedInsertBehavior<E>
java.lang.Object
kieker.monitoring.queue.behavior.BlockOnFailedInsertBehavior<E>
- Type Parameters:
E- the type of the element which should be inserted into the queue.
- All Implemented Interfaces:
InsertBehavior<E>
public class BlockOnFailedInsertBehavior<E> extends java.lang.Object implements InsertBehavior<E>
- Since:
- 1.13
- Author:
- Christian Wulf
-
Constructor Summary
Constructors Constructor Description BlockOnFailedInsertBehavior(java.util.concurrent.BlockingQueue<E> queue) -
Method Summary
-
Constructor Details
-
BlockOnFailedInsertBehavior
- Parameters:
queue- the blocking queue to use this insert behavior
-
-
Method Details
-
insert
- Specified by:
insertin interfaceInsertBehavior<E>- Parameters:
element- element to be inserted- Returns:
trueif the element after thiselementcan be inserted, otherwisefalse.
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-