public class StripedLock extends Object
| Constructor and Description |
|---|
StripedLock(int lockCount) |
| Modifier and Type | Method and Description |
|---|---|
StampedLock |
getLockWithOffset(int offset)
Retrieves the given lock at a provided offset.
|
void |
lockAll()
Locks all write locks.
|
public StampedLock getLockWithOffset(int offset)
offset - the offset of the lock to findpublic void lockAll()
unlockAll() is called in a proper finally blockCopyright © 2022 JBoss by Red Hat. All rights reserved.