public interface LockStrategy
Modifier and Type | Method and Description |
---|---|
Lock |
readLock()
Return a read lock object.
|
Lock |
upgradeLockAttempt(long msecs)
Attempt to upgrade the current read lock to write lock with
msecs timeout. |
Lock |
writeLock()
Return a write lock object.
|
Lock readLock()
Lock writeLock()
Lock upgradeLockAttempt(long msecs) throws UpgradeException
msecs
timeout.msecs
- Timeout in milliseconds.UpgradeException
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.