Class InternalVersionManagerImpl.DynamicESCFactory
- java.lang.Object
-
- org.apache.jackrabbit.core.version.InternalVersionManagerImpl.DynamicESCFactory
-
- All Implemented Interfaces:
EventStateCollectionFactory
- Enclosing class:
- InternalVersionManagerImpl
public static final class InternalVersionManagerImpl.DynamicESCFactory extends Object implements EventStateCollectionFactory
-
-
Constructor Summary
Constructors Constructor Description DynamicESCFactory(DelegatingObservationDispatcher obsMgr)Creates a new event state collection factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventStateCollectioncreateEventStateCollection()Creates anEventStateCollection.EventStateCollectioncreateEventStateCollection(SessionImpl source)ObjectdoSourced(SessionImpl eventSource, org.apache.jackrabbit.core.version.InternalVersionManagerImpl.SourcedTarget runnable)Executes the given runnable using the given event source.
-
-
-
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 anEventStateCollection.This object uses one instance of a
LocalItemStateManagerto 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:
createEventStateCollectionin interfaceEventStateCollectionFactory- 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
LocalItemStateManagerto 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 sourcerunnable- the runnable to execute- Returns:
- the return value of the executed runnable
- Throws:
RepositoryException- if an error occurs
-
-