[rules-users] Removing facts from statefulknowledgeSession's memory

Michael Anstis michael.anstis at gmail.com
Fri Nov 12 03:23:26 EST 2010


A time based eviction queue is simply a queue that evicts its content based
upon time-based heuristic. So the WorkingMemoryEventListener would store
facts inserted into the WorkingMemory in an internal queue and evict them
from that queue based upon some time-based heuristic. You could use an
Executor (ScheduledExecutorService) etc to remove facts from the queue and
working memory at set intervals.

With kind regards,

Mike

On 11 November 2010 22:31, Ayush <ayush.vatsyayan at alcatel-lucent.com> wrote:

>
> Can you please elaborate on "Have it store each inserted object in a
> time based eviction queue and it'll remove things for you." i.e. how can I
> do it?
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Removing-facts-from-statefulknowledgeSession-s-memory-tp1875795p1885760.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101112/dbf6b15c/attachment.html 


More information about the rules-users mailing list