|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.filter.FilterServiceBase
com.espertech.esper.filter.FilterServiceLockFine
public final class FilterServiceLockFine
Constructor Summary | |
---|---|
FilterServiceLockFine()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.espertech.esper.filter.FilterServiceBase |
---|
addFilterServiceListener, addInternal, applyInternal, destroy, evaluateInternal, evaluateInternal, getCountTypes, getFilterCountApprox, getFiltersVersion, getNumEventsEvaluated, removeFilterServiceListener, removeInternal, removeTypeInternal, resetStats, takeInternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterServiceLockFine()
Method Detail |
---|
public void acquireWriteLock()
public void releaseWriteLock()
public FilterSet take(java.util.Set<java.lang.String> statementId)
FilterServiceSPI
statementId
- statement ids to remove
public 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 filters
public 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 for
public 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)
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |