Package org.eclipse.aether.impl
Interface SyncContextFactory
-
- All Known Implementing Classes:
DefaultSyncContextFactory
public interface SyncContextFactory
A factory to create synchronization contexts. A synchronization context is used to coordinate concurrent access to artifacts or metadata.- Provisional:
- This type is provisional and can be changed, moved or removed without prior notice.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SyncContext
newInstance(RepositorySystemSession session, boolean shared)
Creates a new synchronization context.
-
-
-
Method Detail
-
newInstance
SyncContext newInstance(RepositorySystemSession session, boolean shared)
Creates a new synchronization context.- Parameters:
session
- The repository session during which the context will be used, must not benull
.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.- Returns:
- The synchronization context, never
null
. - See Also:
RepositorySystem.newSyncContext(RepositorySystemSession, boolean)
-
-