T
- the target type@FunctionalInterface public interface LockProvider<T>
LockObject
provider.Modifier and Type | Method and Description |
---|---|
LockObject<T> |
tryLock(T target)
Tries to acquire lock for the target.
|
LockObject<T> tryLock(T target) throws IOException
target
- the lock targetnull
if other program has a lock for the same targetIOException
- if failed to acquire lock by I/O exceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.