Package kieker.monitoring.queue.behavior
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
-
Constructor Details
-
Method Details
-
insert
public boolean insert(kieker.common.record.IMonitoringRecord element)- Specified by:
insertin interfaceInsertBehavior<kieker.common.record.IMonitoringRecord>- 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
-