Class DelegatingObservationDispatcher
- java.lang.Object
-
- org.apache.jackrabbit.core.observation.DelegatingObservationDispatcher
-
public class DelegatingObservationDispatcher extends Object
This Class implements an observation dispatcher, that delegates events to a set of underlying dispatchers.
-
-
Constructor Summary
Constructors Constructor Description DelegatingObservationDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDispatcher(ObservationDispatcher dispatcher)Adds a new observation dispatcher to the set of dispatchersEventStateCollectioncreateEventStateCollection(SessionImpl session, Path pathPrefix)Creates anEventStateCollectiontied to the session given as argument.voiddispatch(List<EventState> eventList, SessionImpl session, Path pathPrefix, String userData)Dispatchers a list of events to all registered dispatchers.voidremoveDispatcher(ObservationDispatcher dispatcher)Removes a observation dispatcher from the set of dispatchers
-
-
-
Method Detail
-
addDispatcher
public void addDispatcher(ObservationDispatcher dispatcher)
Adds a new observation dispatcher to the set of dispatchers- Parameters:
dispatcher- observation dispatcher
-
removeDispatcher
public void removeDispatcher(ObservationDispatcher dispatcher)
Removes a observation dispatcher from the set of dispatchers- Parameters:
dispatcher- observation dispatcher
-
createEventStateCollection
public EventStateCollection createEventStateCollection(SessionImpl session, Path pathPrefix)
Creates anEventStateCollectiontied to the session given as argument.- Parameters:
session- event sourcepathPrefix- event path prefix- Returns:
- new
EventStateCollectioninstance
-
dispatch
public void dispatch(List<EventState> eventList, SessionImpl session, Path pathPrefix, String userData)
Dispatchers a list of events to all registered dispatchers. A newEventStateCollectionis created for every dispatcher, fille with the given event list and then dispatched.- Parameters:
eventList- list of eventssession- current sessionpathPrefix- event path prefixuserData- the user data
-
-