Interface SynchronousEventListener

  • All Superinterfaces:
    javax.jcr.observation.EventListener

    public interface SynchronousEventListener
    extends javax.jcr.observation.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.

    • Method Summary

      • Methods inherited from interface javax.jcr.observation.EventListener

        onEvent