GenericEventListener
directly and rename onAsynchronousEvent(javax.jcr.observation.EventIterator)
to onEvent(javax.jcr.observation.EventIterator)
. Do not extend from this AsynchronousDispatchingEventListener
any more@Deprecated public abstract class AsynchronousDispatchingEventListener extends GenericEventListener
AsynchronousDispatchingEventListener
and implement
onAsynchronousEvent(EventIterator)
yourself : This method is invoked with a different Thread and with a jcr EventIterator
which
is detached from the repository containing Event
s which are detached from the repositoryGenericEventListener
skipPaths
Constructor and Description |
---|
AsynchronousDispatchingEventListener()
Deprecated.
Creates a AsynchronousDispatchingEventListener where the ExecutorService is a single threaded executor
|
AsynchronousDispatchingEventListener(ExecutorService executor)
Deprecated.
Creates a AsynchronousDispatchingEventListener with ExecutorService
executor |
Modifier and Type | Method and Description |
---|---|
abstract void |
onAsynchronousEvent(javax.jcr.observation.EventIterator events)
Deprecated.
This method is called when a bundle of events is dispatched asynchronously and detached from the repository listener.
|
void |
onEvent(javax.jcr.observation.EventIterator events)
Deprecated.
|
getSkipPaths, isEventOnSkippedPath, onNodeAdded, onNodeRemoved, onPropertyAdded, onPropertyChanged, onPropertyRemoved, setSkipPaths
public AsynchronousDispatchingEventListener()
public AsynchronousDispatchingEventListener(ExecutorService executor)
executor
executor
- the ExecutorServicepublic abstract void onAsynchronousEvent(javax.jcr.observation.EventIterator events)
events
- The event set received.public final void onEvent(javax.jcr.observation.EventIterator events)
onEvent
in interface javax.jcr.observation.EventListener
onEvent
in class GenericEventListener
Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.