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 boolean
insert(IMonitoringRecord element)
java.lang.String
toString()
-
Constructor Details
-
Method Details
-
insert
- Specified by:
insert
in interfaceInsertBehavior<IMonitoringRecord>
- 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
-