public static final class InternalVersionManagerImpl.DynamicESCFactory extends Object implements EventStateCollectionFactory
Constructor and Description |
---|
InternalVersionManagerImpl.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 InternalVersionManagerImpl.DynamicESCFactory(DelegatingObservationDispatcher obsMgr)
obsMgr
- dispatcherpublic EventStateCollection createEventStateCollection() throws javax.jcr.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
javax.jcr.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 javax.jcr.RepositoryException
eventSource
- event sourcerunnable
- the runnable to executejavax.jcr.RepositoryException
- if an error occursCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.