@FunctionalInterface public interface LockFactory
Modifier and Type | Method and Description |
---|---|
Lock |
obtainLock(String identifier)
Obtain a lock for a resource identified by given
identifier . |
Lock obtainLock(String identifier)
identifier
. Depending on the strategy, this
method may return immediately or block until a lock is held.identifier
- the identifier of the resource to obtain a lock for.Copyright © 2010–2024. All rights reserved.