Package org.apache.jackrabbit.spi
Interface EventFilter
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
EventFilterImpl
public interface EventFilter extends Serializable
AnEventFilteris applied to the events as generated on the repository server. Event filter instances can be created withRepositoryService.createEventFilter(SessionInfo, int, Path, boolean, String[], Name[], boolean). Some repository implementations may also support event filters that are directly instantiated by the client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(Event event, boolean isLocal)If an implementation returnstruetheeventwill be included in the event bundle returned byRepositoryService.getEvents(Subscription, long).
-
-
-
Method Detail
-
accept
boolean accept(Event event, boolean isLocal)
If an implementation returnstruetheeventwill be included in the event bundle returned byRepositoryService.getEvents(Subscription, long). A return value offalseindicates that the client is not interested in theevent.- Parameters:
event- the event in question.isLocal- flag indicating whether this is a local event.- Returns:
trueif the event is accepted by the filter;falseotherwise.
-
-