LockStrategy
public class NoLockStrategy extends AbstractLockStrategy
Constructor | Description |
---|---|
NoLockStrategy() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
lockArtifact(Artifact artifact,
java.io.File artifactFileToDownload) |
Performs a lock before downloading the given
Artifact to the given file. |
void |
unlockArtifact(Artifact artifact,
java.io.File artifactFileToDownload) |
Release the lock acquired for an artifact download.
|
getName, isDebugLocking, setName, toString
public final boolean lockArtifact(Artifact artifact, java.io.File artifactFileToDownload)
LockStrategy
Artifact
to the given file.artifact
- the artifact about to be downloadedartifactFileToDownload
- the file where the artifact will be downloadedpublic final void unlockArtifact(Artifact artifact, java.io.File artifactFileToDownload)
LockStrategy
artifact
- the artifact for which the lock was acquiredartifactFileToDownload
- the file where the artifact is supposed to have been downloaded