public interface NamedLockFactory
NamedLock
s.Modifier and Type | Method and Description |
---|---|
NamedLock |
getLock(String name)
Creates or reuses existing
NamedLock . |
void |
shutdown()
Performs a clean shut down of the factory.
|
NamedLock getLock(String name)
NamedLock
. Returns instance MUST BE treated as "resource", best in
try-with-resource block.name
- the lock name, must not be null
.null
.void shutdown()
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.