Class CountOnFailedInsertBehavior<E>

java.lang.Object
kieker.monitoring.queue.behavior.CountOnFailedInsertBehavior<E>
Type Parameters:
E - the type of the element which should be inserted into the queue.
All Implemented Interfaces:
InsertBehavior<E>

public class CountOnFailedInsertBehavior<E>
extends java.lang.Object
implements InsertBehavior<E>
Since:
1.13
Author:
"Christian Wulf"
  • Constructor Summary

    Constructors 
    Constructor Description
    CountOnFailedInsertBehavior​(java.util.concurrent.BlockingQueue<E> queue)  
  • Method Summary

    Modifier and Type Method Description
    long getNumFailedInserts()  
    boolean insert​(E element)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • insert

      public boolean insert​(E element)
      Specified by:
      insert in interface InsertBehavior<E>
      Parameters:
      element - element to be inserted
      Returns:
      true if the element after this element can be inserted, otherwise false.
    • getNumFailedInserts

      public long getNumFailedInserts()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object