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 EventStateCollection
createEventStateCollection()
Creates anEventStateCollection
.EventStateCollection
createEventStateCollection(SessionImpl source)
Object
doSourced(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
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 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
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 sourcerunnable
- the runnable to execute- Returns:
- the return value of the executed runnable
- Throws:
RepositoryException
- if an error occurs
-
-