This FlowElementContext implementation is unusual in that it differentiates between the kinds of downstream flow elements it has. The 'main' downstream flow element processes normal events, and is direct-coupled to our output. The 'timer' downstream flow element will only process events generated by our timer thread, which may contain arbitrary data. The timer element is not actually recognized by our emit() method; we provide a separate method to retrieve the timer queue for manual use.
|
|