Apama 10.3.1 | Apama Documentation | Developing Apama Applications | EPL Reference | Statements | Simple statements | The enqueue statement
 
The enqueue statement
The enqueue statement sends an event to the back of the input queue of each public context. The expression is evaluated and the resulting event is sent to all input queues of public contexts. If an input queue is full, then the enqueued event is saved on a temporary holding queue until the input queue has room for it. There is one temporary holding queue for all contexts. When an input queue is full, processing in the context that enqueued the event blocks until the enqueued event arrives on all public input queues.
Note that enqueued events are processed in the order they are enqueued.
The expression's result type must be an event type or string. When it is a string, the correlator parses it as an event.
Enqueued events are put on the back of the input queue, behind any externally sourced events already queued.
You cannot enqueue an event whose type is defined inside a monitor.
You cannot enqueue an any value containing an event. An error is generated if an event with an any field which is one of action, chunk, listener, or stream is enqueued.

Copyright © 2013-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.