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, shutdown
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 null
name
- the lock name, must not be null
null
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.