public static final class InternalVersionManagerImpl.DynamicESCFactory extends Object implements EventStateCollectionFactory
Constructor and Description |
---|
DynamicESCFactory(DelegatingObservationDispatcher obsMgr)
Creates a new event state collection factory
|
Modifier and Type | Method and Description |
---|---|
EventStateCollection |
createEventStateCollection()
Creates an
EventStateCollection . |
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.
|
public DynamicESCFactory(DelegatingObservationDispatcher obsMgr)
obsMgr
- dispatcherpublic EventStateCollection createEventStateCollection() throws RepositoryException
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.
createEventStateCollection
in interface EventStateCollectionFactory
EventStateCollection
RepositoryException
- if creation fails for some reasonpublic 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.
public Object doSourced(SessionImpl eventSource, org.apache.jackrabbit.core.version.InternalVersionManagerImpl.SourcedTarget runnable) throws RepositoryException
eventSource
- event sourcerunnable
- the runnable to executeRepositoryException
- if an error occursCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.