public interface SessionAwareNamedLockFactory extends org.eclipse.aether.named.NamedLockFactory
NamedLockFactory that wants to make use of RepositorySystemSession.| Modifier and Type | Method and Description |
|---|---|
org.eclipse.aether.named.NamedLock |
getLock(RepositorySystemSession session,
String name)
Creates or reuses existing
NamedLock. |
getLock, shutdownorg.eclipse.aether.named.NamedLock getLock(RepositorySystemSession session, String name)
NamedLock. Returns instance MUST BE treated as "resource", best in
try-with-resource block.session - the repository system session, must not be nullname - the lock name, must not be nullnullCopyright © 2010–2021 The Apache Software Foundation. All rights reserved.