Class: LaunchDarkly::NullEventProcessor Private
- Inherits:
-
Object
- Object
- LaunchDarkly::NullEventProcessor
- Includes:
- EventProcessorMethods
- Defined in:
- lib/ldclient-rb/events.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#flush ⇒ Object
included
from EventProcessorMethods
Tells the event processor that all pending analytics events should be delivered as soon as possible.
- #record_custom_event(context, key, data = nil, metric_value = nil) ⇒ Object included from EventProcessorMethods
- #record_eval_event(context, key, version = nil, variation = nil, value = nil, reason = nil, default = nil, track_events = false, debug_until = nil, prereq_of = nil, sampling_ratio = nil, exclude_from_summaries = false) ⇒ Object included from EventProcessorMethods
- #record_identify_event(context) ⇒ Object included from EventProcessorMethods
- #record_migration_op_event(event) ⇒ Object included from EventProcessorMethods
- #stop ⇒ Object included from EventProcessorMethods
Instance Method Details
#flush ⇒ Object Originally defined in module EventProcessorMethods
Tells the event processor that all pending analytics events should be delivered as soon as possible.
When the LaunchDarkly client generates analytics events (from LDClient#variation,
LDClient#variation_detail, LDClient#identify, or
LDClient#track), they are queued on a worker thread. The event thread normally
sends all queued events to LaunchDarkly at regular intervals, controlled by the
Config#flush_interval option. Calling flush triggers a send without waiting
for the next interval.
Flushing is asynchronous, so this method will return before it is complete. However, if you call LDClient#close, events are guaranteed to be sent before that method returns.