Package org.eclipse.aether.spi.locking
Interface LockingInhibitorFactory
-
public interface LockingInhibitorFactory
A factory to createLockingInhibitorinstances, that are capable to augment Resolver locking subsystem and prevent locking to happen on certain resources.Warning: locking inhibition should be applied ONLY to resources that do not conflict on disk (i.e. local repository) and are NOT produced/written or altered in any way by Resolver, merely cached and read. Hence, despite artifact locking inhibition is given as option, it should never happen in fact, as aforementioned conditions never stand for them. On the other hand, good examples of resources may be needing locking inhibition are archetype catalogs and RRF prefix files, as both are metadata, hence their remotely fetched cache entries do not conflict locally, furthermore both are produced by remote entities only, and are just cached and read by Maven.
- Since:
- 2.0.14
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<LockingInhibitor>newInstance(org.eclipse.aether.RepositorySystemSession session)May return aLockingInhibitoror just emptyOptional, if for example disabled.
-
-
-
Method Detail
-
newInstance
java.util.Optional<LockingInhibitor> newInstance(org.eclipse.aether.RepositorySystemSession session)
May return aLockingInhibitoror just emptyOptional, if for example disabled.
-
-