@Named public class DefaultSyncContextFactory extends java.lang.Object implements SyncContextFactory
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DefaultSyncContextFactory.DefaultSyncContext |
Constructor and Description |
---|
DefaultSyncContextFactory() |
Modifier and Type | Method and Description |
---|---|
SyncContext |
newInstance(RepositorySystemSession session,
boolean shared)
Creates a new synchronization context.
|
public SyncContext newInstance(RepositorySystemSession session, boolean shared)
SyncContextFactory
newInstance
in interface SyncContextFactory
session
- The repository session during which the context will be used, must not be null
.shared
- A flag indicating whether access to the artifacts/metadata associated with the new context can be
shared among concurrent readers or whether access needs to be exclusive to the calling thread.null
.RepositorySystem.newSyncContext(RepositorySystemSession, boolean)