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