Interface SynchronousEventListener

All Superinterfaces:
EventListener

public interface SynchronousEventListener extends EventListener
A marker interface for synchronous event listener.

If a event listener implements this marker interface, the implementation will decorate the listener with Jacrabbit's org.apache.jackrabbit.core.observation.SynchronousEventListener, which is another marker interface in Jackrabbit for EventListener implementations that wish a synchronous notification of changes to the workspace. That is, a SynchronousEventListener is called before the call to Item.save() returns. In contrast, a regular EventListener might be called after save() returns.

Important note: an implementation of SynchronousEventListener must not modify content with the thread that calls EventListener.onEvent(EventIterator) otherwise inconsistencies may occur.