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 void
addDispatcher(ObservationDispatcher dispatcher)
Adds a new observation dispatcher to the set of dispatchersEventStateCollection
createEventStateCollection(SessionImpl session, Path pathPrefix)
Creates anEventStateCollection
tied to the session given as argument.void
dispatch(List<EventState> eventList, SessionImpl session, Path pathPrefix, String userData)
Dispatchers a list of events to all registered dispatchers.void
removeDispatcher(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 anEventStateCollection
tied to the session given as argument.- Parameters:
session
- event sourcepathPrefix
- event path prefix- Returns:
- new
EventStateCollection
instance
-
dispatch
public void dispatch(List<EventState> eventList, SessionImpl session, Path pathPrefix, String userData)
Dispatchers a list of events to all registered dispatchers. A newEventStateCollection
is 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
-
-