public class SegmentLock extends Object
| 构造器和说明 |
|---|
SegmentLock(int concurrency) |
public void lockInterruptible(int lockId)
throws InterruptedException
lockId - 锁IDInterruptedException - 线程被中断异常public void lockInterruptibleSafe(int lockId)
public void unlock(int lockId)
lockId - 锁IDCopyright © 2024. All rights reserved.