public class EventCounterListener extends Object implements PostCommitEventListener
Modifier and Type | Field and Description |
---|---|
protected static List<String> |
createEvents |
static String |
EVENT_CREATE_COUNTER |
static String |
EVENT_REMOVE_COUNTER |
static String |
EVENT_UPDATE_COUNTER |
protected static List<String> |
removeEvents |
protected static List<String> |
updateEvents |
Constructor and Description |
---|
EventCounterListener() |
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.
|
protected void |
updateCounters(List<String> eventNames) |
public static final String EVENT_CREATE_COUNTER
public static final String EVENT_UPDATE_COUNTER
public static final String EVENT_REMOVE_COUNTER
protected static final List<String> createEvents
protected static final List<String> updateEvents
protected static final List<String> removeEvents
public EventCounterListener()
public void handleEvent(EventBundle events)
PostCommitEventListener
The events are fired as a BundleEvent
after the transaction is committed.
handleEvent
in interface PostCommitEventListener
events
- the events to handleprotected void updateCounters(List<String> eventNames)
Copyright © 2015 Nuxeo SA. All rights reserved.