Package kieker.monitoring.queue.behavior
Class BypassQueueBehavior
java.lang.Object
kieker.monitoring.queue.behavior.BypassQueueBehavior
- All Implemented Interfaces:
InsertBehavior<IMonitoringRecord>
public class BypassQueueBehavior extends java.lang.Object implements InsertBehavior<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
- Author:
- Holger Knoche
-
Constructor Summary
Constructors Constructor Description BypassQueueBehavior(AbstractMonitoringWriter writer) -
Method Summary
Modifier and Type Method Description booleaninsert(IMonitoringRecord element)java.lang.StringtoString()
-
Constructor Details
-
Method Details
-
insert
- Specified by:
insertin interfaceInsertBehavior<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
-