@duration vs @expires vs "over window:time(x)

15 views
Skip to first unread message

Ivan Kostyuk

unread,
Jan 13, 2022, 6:52:01 PM1/13/22
to Drools Usage
@duration - an event persists in the working memory of the engine until its duration time has lapsed;
@expires - the time duration before an event expires in the working memory;
over window:time(x) - a sliding time window is a specified period of time during which events can be processed


For @duration, I guess, the value is taken from an attribute. In what units?

Using the sliding window, it seems, makes it more efficient due to proper internal structure. Besides the structure, are all three give the same benefits?


Reply all
Reply to author
Forward
0 new messages