Uses of Interface
cloud.opencode.base.lock.Lock
Packages that use Lock
Package
Description
Lock Package - Unified Lock Abstraction (JDK 25)
Lock包 - 统一锁抽象 (JDK 25)
Distributed Lock Package - Distributed lock interfaces
分布式锁包 - 分布式锁接口
Lock Event Package - Lock Lifecycle Event Notification (JDK 25)
锁事件包 - 锁生命周期事件通知 (JDK 25)
Local Lock Package - Local lock implementations
本地锁包 - 本地锁实现
Lock Manager Package - Lock management utilities
锁管理包 - 锁管理工具
-
Uses of Lock in cloud.opencode.base.lock
Methods in cloud.opencode.base.lock that return LockModifier and TypeMethodDescriptionOpenLock.fairLock()Creates a fair lock that grants access in FIFO order 创建按FIFO顺序授予访问权限的公平锁LockGuard.lock()Returns the value of thelockrecord component.OpenLock.lock()Creates a local reentrant lock with default configuration 使用默认配置创建本地可重入锁OpenLock.lock(LockConfig config) Creates a local lock with specified configuration 使用指定配置创建本地锁static <T> Lock<T> OpenLock.observableLock(Lock<T> delegate, String lockName, LockListener... listeners) Wraps an existing lock with event observation 用事件观察包装现有锁OpenLock.observableLock(String lockName, LockListener... listeners) Creates an observable lock that fires events to listeners 创建向监听器触发事件的可观察锁ReadWriteLock.readLock()Gets the read lock for concurrent read access 获取用于并发读取访问的读锁OpenLock.retryLock()Creates a retry lock wrapping a new local lock with default retry settings 使用默认重试设置包装新本地锁创建重试锁OpenLock.spinLock()Creates a spin lock for very short critical sections 为极短临界区创建自旋锁OpenLock.spinLock(int maxSpinCount) Creates a spin lock with custom max spin count 使用自定义最大自旋次数创建自旋锁Creates a lock with TTL (Time-To-Live) auto-expiry 创建带 TTL(生存时间)自动过期的锁Creates a fair TTL lock 创建公平TTL锁ReadWriteLock.writeLock()Gets the write lock for exclusive write access 获取用于独占写入访问的写锁Methods in cloud.opencode.base.lock with parameters of type LockModifier and TypeMethodDescriptionstatic <T> Lock<T> OpenLock.observableLock(Lock<T> delegate, String lockName, LockListener... listeners) Wraps an existing lock with event observation 用事件观察包装现有锁static <T> RetryLock.Builder<T> Creates a retry lock builder wrapping the specified lock 创建包装指定锁的重试锁构建器Constructors in cloud.opencode.base.lock with parameters of type Lock -
Uses of Lock in cloud.opencode.base.lock.distributed
Subinterfaces of Lock in cloud.opencode.base.lock.distributedModifier and TypeInterfaceDescriptioninterfaceDistributed Lock Interface with TTL and Extension Support 支持TTL和延长的分布式锁接口 -
Uses of Lock in cloud.opencode.base.lock.event
Classes in cloud.opencode.base.lock.event that implement LockModifier and TypeClassDescriptionclassObservable Lock Decorator with Event Notification 带事件通知的可观察锁装饰器Constructors in cloud.opencode.base.lock.event with parameters of type LockModifierConstructorDescriptionObservableLock(Lock<T> delegate, String lockName) Creates an observable lock wrapping the given delegate 创建包装给定委托的可观察锁ObservableLock(Lock<T> delegate, String lockName, LockListener... listeners) Creates an observable lock with initial listeners 创建带初始监听器的可观察锁 -
Uses of Lock in cloud.opencode.base.lock.local
Classes in cloud.opencode.base.lock.local that implement LockModifier and TypeClassDescriptionclassLocal Lock Implementation Based on JDK ReentrantLock 基于JDK ReentrantLock的本地锁实现classRetryLock<T>Retry Lock Decorator with Exponential Backoff 带指数退避的重试锁装饰器classSpin Lock Implementation for Short Critical Sections 短临界区自旋锁实现classTime-To-Live Lock with Automatic Expiry 带自动过期的生存时间锁Methods in cloud.opencode.base.lock.local that return LockModifier and TypeMethodDescriptionRetryLock.getDelegate()Gets the underlying delegate lock 获取底层委托锁Gets the lock for the specified key 获取指定键对应的锁LocalReadWriteLock.readLock()StampedLockAdapter.readLock()LocalReadWriteLock.writeLock()StampedLockAdapter.writeLock()Methods in cloud.opencode.base.lock.local with parameters of type LockModifier and TypeMethodDescriptionstatic <T> RetryLock.Builder<T> Creates a builder for configuring a retry lock 创建用于配置重试锁的构建器Constructors in cloud.opencode.base.lock.local with parameters of type Lock -
Uses of Lock in cloud.opencode.base.lock.manager
Methods in cloud.opencode.base.lock.manager that return LockModifier and TypeMethodDescriptionLockManager.getLocalLock(String name) Gets or creates a local lock by name 按名称获取或创建本地锁Gets a lock for the given name 获取给定名称的锁Methods in cloud.opencode.base.lock.manager with parameters of type LockModifier and TypeMethodDescriptionAdds a lock to the group 添加锁到组Method parameters in cloud.opencode.base.lock.manager with type arguments of type LockModifier and TypeMethodDescriptionLockGroup.Builder.addAll(Collection<? extends Lock<?>> locks) Adds multiple locks to the group 添加多个锁到组