Memory Management for Events
The automatic memory management for events is only performed when running the engine in
STREAM mode. Check the Event Processing Mode section for in this guide for additional details
on STREAM MODE.
One of the benefits of running the engine in STREAM mode is that the
engine can detect when an event can no longer match any rule due to its
temporal constraints. When that happens, the engine can safely retract the
event from the session without side effects and release any resources used
by that event.
There are 2 approaches for the engine to calculate the matching window for a given
event:
Explicitly, using the expiration policy
Implicitly, analyzing the temporal constraints on events