Class BypassQueueBehavior

java.lang.Object
kieker.monitoring.queue.behavior.BypassQueueBehavior
All Implemented Interfaces:
InsertBehavior<kieker.common.record.IMonitoringRecord>

public class BypassQueueBehavior
extends java.lang.Object
implements InsertBehavior<kieker.common.record.IMonitoringRecord>
Insert behavior that bypasses the writer controller's queue and thus calls the writer synchronously. This behavior is useful for writers such as the chunking collector which have their own queues and asynchronous workers.
Since:
1.13
  • Constructor Summary

    Constructors 
    Constructor Description
    BypassQueueBehavior​(AbstractMonitoringWriter writer)  
  • Method Summary

    Modifier and Type Method Description
    boolean insert​(kieker.common.record.IMonitoringRecord 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​(kieker.common.record.IMonitoringRecord element)
      Specified by:
      insert in interface InsertBehavior<kieker.common.record.IMonitoringRecord>
      Parameters:
      element - element to be inserted
      Returns:
      true if the element after this element can be inserted, otherwise false.
    • toString

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