public abstract class AbstractLongRunningListener extends Object implements PostCommitFilteringEventListener
PostCommitEventListener
are executed in a
Work
that will take care of starting/comitting the transaction.
If the listener requires a long processing this will create long transactions that are not good. To avoid this
behavior, this base class split the processing in 3 steps :
Constructor and Description |
---|
AbstractLongRunningListener() |
Modifier and Type | Method and Description |
---|---|
void |
handleEvent(EventBundle events)
Handles the set of events that were raised during the life of an user operation.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptEvent
public void handleEvent(EventBundle events) throws ClientException
PostCommitEventListener
The events are fired as a BundleEvent
after the transaction is committed.
handleEvent
in interface PostCommitEventListener
events
- the events to handleClientException
Copyright © 2015 Nuxeo SA. All rights reserved.