public interface SessionAwareNamedLockFactory extends NamedLockFactory
NamedLockFactory that wants to make use of RepositorySystemSession.| Modifier and Type | Method and Description |
|---|---|
NamedLock |
getLock(RepositorySystemSession session,
String name)
Creates or reuses existing
NamedLock. |
getLock, shutdownNamedLock 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.