Package org.drools.kiesession.audit
Class WorkingMemoryLogEventFilter
java.lang.Object
org.drools.kiesession.audit.WorkingMemoryLogEventFilter
- All Implemented Interfaces:
ILogEventFilter
An event filter that can be used to filter working memory events.
By default, all events are allowed. You can filter out any of the
three types of working memory events by setting the allow boolean
for that type to false.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkingMemoryLogEventFilter(boolean allowAssertEvents, boolean allowModifyEvents, boolean allowRetractEvents) -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptEvent(LogEvent event) Returns whether the given event should be filtered from the event log or not.voidsetAllowInsertEvents(boolean allowInsertEvents) voidsetAllowRetractEvents(boolean allowRetractEvents) voidsetAllowUpdateEvents(boolean allowUpdateEvents)
-
Constructor Details
-
WorkingMemoryLogEventFilter
public WorkingMemoryLogEventFilter(boolean allowAssertEvents, boolean allowModifyEvents, boolean allowRetractEvents)
-
-
Method Details
-
acceptEvent
Description copied from interface:ILogEventFilterReturns whether the given event should be filtered from the event log or not.- Specified by:
acceptEventin interfaceILogEventFilter- Parameters:
event- The log event- Returns:
- Whether the event should be filtered from the event log or not.
- See Also:
-
org.kie.audit.event.ILogEventFilter
-
setAllowInsertEvents
public void setAllowInsertEvents(boolean allowInsertEvents) -
setAllowUpdateEvents
public void setAllowUpdateEvents(boolean allowUpdateEvents) -
setAllowRetractEvents
public void setAllowRetractEvents(boolean allowRetractEvents)
-