public class SegmentLocks<T> extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
SegmentLocks.IExecutor
IExecutor: 外部执行器
|
| 构造器和说明 |
|---|
SegmentLocks() |
SegmentLocks(int lockSize) |
public void lockDoing(Predicate<T> unExecutePredicate, T lockValue, SegmentLocks.IExecutor executor)
unExecutePredicate - 不执行锁判断lockValue - 锁对象executor - 执行器Copyright © 2023. All rights reserved.