public final class FilterServiceLockFine extends FilterServiceBase
Constructor and Description |
---|
FilterServiceLockFine() |
Modifier and Type | Method and Description |
---|---|
void |
acquireWriteLock() |
void |
add(FilterValueSet filterValueSet,
FilterHandle callback)
Add a filter for events as defined by the filter specification, and register a
callback to be invoked upon evaluation of an event that matches the filter spec.
|
void |
apply(FilterSet filterSet)
Apply a set of previously taken filters.
|
long |
evaluate(EventBean theEvent,
java.util.Collection<FilterHandle> matches)
Finds matching filters to the event passed in and collects their associated callback method.
|
long |
evaluate(EventBean theEvent,
java.util.Collection<FilterHandle> matches,
java.lang.String statementId)
Finds matching filters to the event passed in and collects their associated callback method, for a particular statement only
|
void |
releaseWriteLock() |
void |
remove(FilterHandle callback)
Remove a filter callback.
|
void |
removeType(EventType type) |
FilterSet |
take(java.util.Set<java.lang.String> statementId)
Take a set of statements of out the active filters, returning a save-set of filters.
|
addFilterServiceListener, destroy, getCountTypes, getFilterCountApprox, getFiltersVersion, getNumEventsEvaluated, removeFilterServiceListener, resetStats
public void acquireWriteLock()
public void releaseWriteLock()
public FilterSet take(java.util.Set<java.lang.String> statementId)
FilterServiceSPI
statementId
- statement ids to removepublic void apply(FilterSet filterSet)
FilterServiceSPI
filterSet
- to applypublic long evaluate(EventBean theEvent, java.util.Collection<FilterHandle> matches)
FilterService
theEvent
- is the event to be matched against filtersmatches
- is a collection that is populated via add method with any handles for matching filterspublic long evaluate(EventBean theEvent, java.util.Collection<FilterHandle> matches, java.lang.String statementId)
FilterService
theEvent
- is the event to be matched against filtersmatches
- is a collection that is populated via add method with any handles for matching filtersstatementId
- statement for which to return results forpublic void add(FilterValueSet filterValueSet, FilterHandle callback)
FilterService
filterValueSet
- is a specification of filter parameters, contains
event type information, event property values and operatorscallback
- is the callback to be invoked when the filter matches an eventpublic void remove(FilterHandle callback)
FilterService
callback
- is the callback to be removedpublic void removeType(EventType type)