|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.filter.FilterServiceBase
public abstract class FilterServiceBase
Implementation of the filter service interface. Does not allow the same filter callback to be added more then once.
Constructor Summary | |
---|---|
protected |
FilterServiceBase(FilterServiceGranularLockFactory lockFactory)
Constructor. |
Method Summary | |
---|---|
void |
addFilterServiceListener(FilterServiceListener filterServiceListener)
Add activity listener.void acquireWriteLock(); |
protected void |
addInternal(FilterValueSet filterValueSet,
FilterHandle filterCallback)
|
protected void |
applyInternal(FilterSet filterSet)
|
void |
destroy()
Destroy the service. |
protected long |
evaluateInternal(EventBean theEvent,
java.util.Collection<FilterHandle> matches)
|
protected long |
evaluateInternal(EventBean theEvent,
java.util.Collection<FilterHandle> matches,
java.lang.String statementId)
|
int |
getCountTypes()
|
int |
getFilterCountApprox()
|
long |
getFiltersVersion()
Returns filter version. |
long |
getNumEventsEvaluated()
Return a count of the number of events evaluated by this service. |
void |
removeFilterServiceListener(FilterServiceListener filterServiceListener)
Remove activity listener. |
protected void |
removeInternal(FilterHandle filterCallback)
|
protected void |
removeTypeInternal(EventType type)
|
void |
resetStats()
Reset the number of events evaluated |
protected FilterSet |
takeInternal(java.util.Set<java.lang.String> statementIds)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.espertech.esper.filter.FilterServiceSPI |
---|
acquireWriteLock, apply, releaseWriteLock, take |
Methods inherited from interface com.espertech.esper.filter.FilterService |
---|
add, evaluate, evaluate, remove, removeType |
Constructor Detail |
---|
protected FilterServiceBase(FilterServiceGranularLockFactory lockFactory)
Method Detail |
---|
public long getFiltersVersion()
FilterService
getFiltersVersion
in interface FilterService
public void destroy()
FilterService
destroy
in interface FilterService
protected void addInternal(FilterValueSet filterValueSet, FilterHandle filterCallback)
protected void removeInternal(FilterHandle filterCallback)
protected long evaluateInternal(EventBean theEvent, java.util.Collection<FilterHandle> matches)
protected long evaluateInternal(EventBean theEvent, java.util.Collection<FilterHandle> matches, java.lang.String statementId)
public final long getNumEventsEvaluated()
FilterService
getNumEventsEvaluated
in interface FilterService
public void resetStats()
FilterService
resetStats
in interface FilterService
public void addFilterServiceListener(FilterServiceListener filterServiceListener)
FilterServiceSPI
addFilterServiceListener
in interface FilterServiceSPI
filterServiceListener
- to addpublic void removeFilterServiceListener(FilterServiceListener filterServiceListener)
FilterServiceSPI
removeFilterServiceListener
in interface FilterServiceSPI
filterServiceListener
- to removeprotected FilterSet takeInternal(java.util.Set<java.lang.String> statementIds)
protected void applyInternal(FilterSet filterSet)
public int getFilterCountApprox()
getFilterCountApprox
in interface FilterServiceSPI
public int getCountTypes()
getCountTypes
in interface FilterServiceSPI
protected void removeTypeInternal(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 |