Class InternalVersionManagerImpl.DynamicESCFactory

    • Constructor Detail

      • DynamicESCFactory

        public DynamicESCFactory​(DelegatingObservationDispatcher obsMgr)
        Creates a new event state collection factory
        Parameters:
        obsMgr - dispatcher
    • Method Detail

      • createEventStateCollection

        public EventStateCollection createEventStateCollection()
                                                        throws RepositoryException
        Creates an EventStateCollection.

        This object uses one instance of a LocalItemStateManager to update data on behalf of many sessions. In order to maintain the association between update operation and session who actually invoked the update, an internal event source is used.

        Specified by:
        createEventStateCollection in interface EventStateCollectionFactory
        Returns:
        a new EventStateCollection
        Throws:
        RepositoryException - if creation fails for some reason
      • createEventStateCollection

        public EventStateCollection createEventStateCollection​(SessionImpl source)

        This object uses one instance of a LocalItemStateManager to update data on behalf of many sessions. In order to maintain the association between update operation and session who actually invoked the update, an internal event source is used.

      • doSourced

        public Object doSourced​(SessionImpl eventSource,
                                org.apache.jackrabbit.core.version.InternalVersionManagerImpl.SourcedTarget runnable)
                         throws RepositoryException
        Executes the given runnable using the given event source.
        Parameters:
        eventSource - event source
        runnable - the runnable to execute
        Returns:
        the return value of the executed runnable
        Throws:
        RepositoryException - if an error occurs