Index

A B C D E F G H I L M N O Q R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

ACQUIRE - Enum constant in enum class cloud.opencode.base.lock.exception.OpenLockException.LockErrorType
Acquire failed - 获取失败
acquireCount() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Returns the value of the acquireCount record component.
acquired(String, Duration) - Static method in record class cloud.opencode.base.lock.event.LockEvent
Creates an ACQUIRED event with wait time 创建带等待时间的ACQUIRED事件
ACQUIRED - Enum constant in enum class cloud.opencode.base.lock.event.LockEvent.EventType
Lock successfully acquired | 锁获取成功
acquiredCount() - Method in class cloud.opencode.base.lock.manager.LockGroup
Gets the number of currently acquired locks 获取当前已获取的锁数量
add(Lock) - Method in class cloud.opencode.base.lock.manager.LockGroup.Builder
Adds a lock to the group 添加锁到组
addAll(Collection) - Method in class cloud.opencode.base.lock.manager.LockGroup.Builder
Adds multiple locks to the group 添加多个锁到组
addListener(LockListener) - Method in class cloud.opencode.base.lock.event.ObservableLock
Adds a listener to receive lock events 添加监听器以接收锁事件
autoRenew() - Method in record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Returns the value of the autoRenew record component.
autoRenew(boolean) - Method in class cloud.opencode.base.lock.distributed.DistributedLockConfig.Builder
Sets whether to enable automatic lock renewal 设置是否启用自动锁续期
averageWaitTime() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Returns the value of the averageWaitTime record component.

B

backoffMultiplier(double) - Method in class cloud.opencode.base.lock.local.RetryLock.Builder
Sets the backoff multiplier 设置退避倍数
build() - Method in class cloud.opencode.base.lock.distributed.DistributedLockConfig.Builder
Builds the distributed lock configuration 构建分布式锁配置
build() - Method in class cloud.opencode.base.lock.local.RetryLock.Builder
Builds the configured RetryLock 构建配置好的 RetryLock
build() - Method in class cloud.opencode.base.lock.LockConfig.Builder
Builds the lock configuration 构建锁配置
build() - Method in class cloud.opencode.base.lock.manager.LockGroup.Builder
Builds the lock group 构建锁组
builder() - Static method in record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Creates a new configuration builder 创建新的配置构建器
builder() - Static method in record class cloud.opencode.base.lock.LockConfig
Creates a new configuration builder 创建新的配置构建器
builder() - Static method in class cloud.opencode.base.lock.manager.LockGroup
Creates a new lock group builder 创建新的锁组构建器
builder(Lock) - Static method in class cloud.opencode.base.lock.local.RetryLock
Creates a builder for configuring a retry lock 创建用于配置重试锁的构建器
Builder() - Constructor for class cloud.opencode.base.lock.distributed.DistributedLockConfig.Builder
 
Builder() - Constructor for class cloud.opencode.base.lock.LockConfig.Builder
 
Builder() - Constructor for class cloud.opencode.base.lock.manager.LockGroup.Builder
 

C

close() - Method in interface cloud.opencode.base.lock.Lock
Releases lock if held by current thread 如果当前线程持有锁则释放
close() - Method in record class cloud.opencode.base.lock.LockGuard
Releases the lock when the guard is closed 当守卫关闭时释放锁
close() - Method in class cloud.opencode.base.lock.manager.LockGroup
 
close() - Method in record class cloud.opencode.base.lock.manager.LockGroup.LockGroupGuard
 
close() - Method in class cloud.opencode.base.lock.manager.LockManager
 
cloud.opencode.base.lock - module cloud.opencode.base.lock
OpenCode Base Lock Module OpenCode 基础锁模块
cloud.opencode.base.lock - package cloud.opencode.base.lock
Lock Package - Unified Lock Abstraction (JDK 25) Lock包 - 统一锁抽象 (JDK 25)
cloud.opencode.base.lock.distributed - package cloud.opencode.base.lock.distributed
Distributed Lock Package - Distributed lock interfaces 分布式锁包 - 分布式锁接口
cloud.opencode.base.lock.event - package cloud.opencode.base.lock.event
Lock Event Package - Lock Lifecycle Event Notification (JDK 25) 锁事件包 - 锁生命周期事件通知 (JDK 25)
cloud.opencode.base.lock.exception - package cloud.opencode.base.lock.exception
Lock Exception Package - Lock-related exceptions 锁异常包 - 锁相关异常
cloud.opencode.base.lock.local - package cloud.opencode.base.lock.local
Local Lock Package - Local lock implementations 本地锁包 - 本地锁实现
cloud.opencode.base.lock.manager - package cloud.opencode.base.lock.manager
Lock Manager Package - Lock management utilities 锁管理包 - 锁管理工具
cloud.opencode.base.lock.metrics - package cloud.opencode.base.lock.metrics
Lock Metrics Package - Lock metrics and statistics 锁指标包 - 锁指标和统计
cloud.opencode.base.lock.spi - package cloud.opencode.base.lock.spi
Lock SPI Package - Service Provider Interface for locks 锁 SPI 包 - 锁的服务提供者接口
cloud.opencode.base.lock.token - package cloud.opencode.base.lock.token
Fencing Token Generation Package 防护令牌生成包
configBuilder() - Static method in class cloud.opencode.base.lock.OpenLock
Creates a lock configuration builder 创建锁配置构建器
contentionCount() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Returns the value of the contentionCount record component.
Core Interfaces | 核心接口 - Section in package cloud.opencode.base.lock
 
Core Types | 核心类型 - Section in package cloud.opencode.base.lock.event
 
createLock(String, DistributedLockConfig) - Method in interface cloud.opencode.base.lock.spi.DistributedLockProvider
Creates a new distributed lock with the specified name and configuration 使用指定名称和配置创建新的分布式锁
createReadWriteLock(String, DistributedLockConfig) - Method in interface cloud.opencode.base.lock.spi.DistributedLockProvider
Creates a distributed read-write lock 创建分布式读写锁
currentHoldCount() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Returns the value of the currentHoldCount record component.

D

DEADLOCK - Enum constant in enum class cloud.opencode.base.lock.exception.OpenLockException.LockErrorType
Deadlock detected - 死锁
defaultConfig() - Static method in class cloud.opencode.base.lock.OpenLock
Gets default lock configuration 获取默认锁配置
defaultDistributedConfig() - Static method in class cloud.opencode.base.lock.OpenLock
Gets default distributed lock configuration 获取默认分布式锁配置
DefaultLockMetrics - Class in cloud.opencode.base.lock.metrics
Default Lock Metrics Implementation with Lock-Free Statistics 使用无锁统计的默认锁指标实现
DefaultLockMetrics() - Constructor for class cloud.opencode.base.lock.metrics.DefaultLockMetrics
 
defaults() - Static method in record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Gets the default configuration with reasonable defaults 获取具有合理默认值的默认配置
defaults() - Static method in record class cloud.opencode.base.lock.LockConfig
Gets default configuration with reasonable defaults 获取具有合理默认值的默认配置
defaultTimeout() - Method in record class cloud.opencode.base.lock.LockConfig
Returns the value of the defaultTimeout record component.
distributedConfigBuilder() - Static method in class cloud.opencode.base.lock.OpenLock
Creates a distributed lock configuration builder 创建分布式锁配置构建器
DistributedLock - Interface in cloud.opencode.base.lock.distributed
Distributed Lock Interface with TTL and Extension Support 支持TTL和延长的分布式锁接口
DistributedLockConfig - Record Class in cloud.opencode.base.lock.distributed
Distributed Lock Configuration Record 分布式锁配置记录
DistributedLockConfig(Duration, Duration, Duration, boolean, int, Duration, boolean) - Constructor for record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Creates an instance of a DistributedLockConfig record class.
DistributedLockConfig.Builder - Class in cloud.opencode.base.lock.distributed
Distributed Lock Configuration Builder 分布式锁配置构建器
DistributedLockProvider - Interface in cloud.opencode.base.lock.spi
Distributed Lock Provider Service Provider Interface (SPI) 分布式锁提供者服务提供者接口(SPI)

E

enableFencing() - Method in record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Returns the value of the enableFencing record component.
enableFencing(boolean) - Method in class cloud.opencode.base.lock.distributed.DistributedLockConfig.Builder
Sets whether to enable fencing token for safe resource access 设置是否启用防护令牌以安全访问资源
enableMetrics() - Method in record class cloud.opencode.base.lock.LockConfig
Returns the value of the enableMetrics record component.
enableMetrics(boolean) - Method in class cloud.opencode.base.lock.LockConfig.Builder
Sets whether metrics collection is enabled 设置是否启用指标收集
Entry Point | 入口点 - Section in package cloud.opencode.base.lock
 
equals(Object) - Method in record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.lock.event.LockEvent
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.lock.LockConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.lock.LockGuard
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.lock.manager.LockGroup.LockGroupGuard
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.lock.metrics.LockStats
Indicates whether some other object is "equal to" this one.
error(String) - Static method in record class cloud.opencode.base.lock.event.LockEvent
Creates an ERROR event 创建ERROR事件
ERROR - Enum constant in enum class cloud.opencode.base.lock.event.LockEvent.EventType
Lock operation error | 锁操作错误
errorType() - Method in exception class cloud.opencode.base.lock.exception.OpenLockException
Gets the type of lock error that occurred 获取发生的锁错误类型
execute(Runnable) - Method in interface cloud.opencode.base.lock.Lock
Executes action with lock held 持有锁执行操作
execute(Runnable) - Static method in class cloud.opencode.base.lock.OpenLock
Executes action with a new temporary lock 使用新的临时锁执行操作
execute(Runnable, Duration) - Method in interface cloud.opencode.base.lock.Lock
Executes action with lock and timeout 带超时持有锁执行操作
execute(String, Runnable) - Method in class cloud.opencode.base.lock.manager.NamedLockFactory
Executes action with the lock for the given name 使用给定名称的锁执行操作
execute(K, Runnable) - Method in class cloud.opencode.base.lock.local.SegmentLock
Executes action with the lock for the specified key 使用指定键对应的锁执行操作
executeRead(Runnable) - Method in interface cloud.opencode.base.lock.ReadWriteLock
Executes action with read lock held 持有读锁执行操作
executeRead(Supplier) - Method in interface cloud.opencode.base.lock.ReadWriteLock
Executes supplier with read lock and returns result 持有读锁执行并返回结果
executeWithLocalLock(String, Runnable) - Method in class cloud.opencode.base.lock.manager.LockManager
Executes action with a named local lock 使用命名本地锁执行操作
executeWithResult(String, Supplier) - Method in class cloud.opencode.base.lock.manager.NamedLockFactory
Executes supplier with the lock for the given name and returns result 使用给定名称的锁执行并返回结果
executeWithResult(Supplier) - Method in interface cloud.opencode.base.lock.Lock
Executes supplier with lock and returns result 持有锁执行并返回结果
executeWithResult(Supplier) - Static method in class cloud.opencode.base.lock.OpenLock
Executes supplier with a new temporary lock and returns result 使用新的临时锁执行并返回结果
executeWithResult(Supplier, Duration) - Method in interface cloud.opencode.base.lock.Lock
Executes supplier with lock, timeout and returns result 带超时持有锁执行并返回结果
executeWithResult(K, Supplier) - Method in class cloud.opencode.base.lock.local.SegmentLock
Executes supplier with the lock for the specified key and returns result 使用指定键对应的锁执行并返回结果
executeWrite(Runnable) - Method in interface cloud.opencode.base.lock.ReadWriteLock
Executes action with write lock held 持有写锁执行操作
executeWrite(Supplier) - Method in interface cloud.opencode.base.lock.ReadWriteLock
Executes supplier with write lock and returns result 持有写锁执行并返回结果
EXPIRED - Enum constant in enum class cloud.opencode.base.lock.exception.OpenLockException.LockErrorType
Lock expired - 锁已过期
extend(Duration) - Method in interface cloud.opencode.base.lock.distributed.DistributedLock
Extends the lock TTL by the specified duration 将锁的TTL延长指定时长

F

fair() - Method in record class cloud.opencode.base.lock.LockConfig
Returns the value of the fair record component.
fair(boolean) - Method in class cloud.opencode.base.lock.LockConfig.Builder
Sets whether the lock should be fair 设置锁是否应该是公平的
fairLock() - Static method in class cloud.opencode.base.lock.OpenLock
Creates a fair lock that grants access in FIFO order 创建按FIFO顺序授予访问权限的公平锁
FencingTokenGenerator - Class in cloud.opencode.base.lock.token
Fencing Token Generator with Optional ID Module Delegation 支持可选 ID 模块委托的 Fencing Token 生成器

G

GENERAL - Enum constant in enum class cloud.opencode.base.lock.exception.OpenLockException.LockErrorType
General error - 一般错误
generateLongToken() - Static method in class cloud.opencode.base.lock.token.FencingTokenGenerator
Generates a unique long token for fencing.
generatePrefixedToken(String) - Static method in class cloud.opencode.base.lock.token.FencingTokenGenerator
Generates a token with specified prefix.
generateStringToken() - Static method in class cloud.opencode.base.lock.token.FencingTokenGenerator
Generates a unique string token for fencing.
getAcquireCount() - Method in class cloud.opencode.base.lock.metrics.DefaultLockMetrics
 
getAcquireCount() - Method in interface cloud.opencode.base.lock.metrics.LockMetrics
Gets the total number of successful lock acquisitions 获取成功锁获取的总次数
getAverageWaitTime() - Method in class cloud.opencode.base.lock.metrics.DefaultLockMetrics
 
getAverageWaitTime() - Method in interface cloud.opencode.base.lock.metrics.LockMetrics
Gets the average time spent waiting for the lock 获取等待锁的平均时间
getBackoffMultiplier() - Method in class cloud.opencode.base.lock.local.RetryLock
Gets the backoff multiplier 获取退避倍数
getContentionCount() - Method in class cloud.opencode.base.lock.metrics.DefaultLockMetrics
 
getContentionCount() - Method in interface cloud.opencode.base.lock.metrics.LockMetrics
Gets the number of times threads had to wait for the lock 获取线程必须等待锁的次数
getContentionRate() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Calculates the lock contention rate 计算锁竞争率
getCurrentHoldCount() - Method in class cloud.opencode.base.lock.metrics.DefaultLockMetrics
 
getCurrentHoldCount() - Method in interface cloud.opencode.base.lock.metrics.LockMetrics
Gets the current number of threads holding the lock 获取当前持有锁的线程数
getDelegate() - Method in class cloud.opencode.base.lock.local.RetryLock
Gets the underlying delegate lock 获取底层委托锁
getHoldCount() - Method in class cloud.opencode.base.lock.local.LocalLock
Gets the hold count for current thread 获取当前线程的持有计数
getHoldCount() - Method in class cloud.opencode.base.lock.local.SpinLock
Gets the number of holds on this lock by the current thread 获取当前线程对此锁的持有次数
getLocalLock(String) - Method in class cloud.opencode.base.lock.manager.LockManager
Gets or creates a local lock by name 按名称获取或创建本地锁
getLocalReadWriteLock(String) - Method in class cloud.opencode.base.lock.manager.LockManager
Gets or creates a local read-write lock by name 按名称获取或创建本地读写锁
getLock(String) - Method in class cloud.opencode.base.lock.manager.NamedLockFactory
Gets a lock for the given name 获取给定名称的锁
getLock(K) - Method in class cloud.opencode.base.lock.local.SegmentLock
Gets the lock for the specified key 获取指定键对应的锁
getLockName() - Method in class cloud.opencode.base.lock.event.ObservableLock
Gets the lock name used in events 获取事件中使用的锁名称
getManagedLockCount() - Method in class cloud.opencode.base.lock.manager.LockManager
Gets the total count of managed locks 获取托管锁的总数
getManagedLockNames() - Method in class cloud.opencode.base.lock.manager.LockManager
Gets the names of all managed locks 获取所有托管锁的名称
getMaxDelay() - Method in class cloud.opencode.base.lock.local.RetryLock
Gets the maximum delay cap 获取最大延迟上限
getMaxRetries() - Method in class cloud.opencode.base.lock.local.RetryLock
Gets the maximum number of retry attempts 获取最大重试次数
getMaxWaitTime() - Method in class cloud.opencode.base.lock.metrics.DefaultLockMetrics
 
getMaxWaitTime() - Method in interface cloud.opencode.base.lock.metrics.LockMetrics
Gets the maximum time any thread spent waiting for the lock 获取任何线程等待锁的最大时间
getMetrics() - Method in class cloud.opencode.base.lock.local.LocalLock
Gets the lock metrics if metrics collection is enabled 如果启用了指标收集,则获取锁指标
getName() - Method in interface cloud.opencode.base.lock.distributed.DistributedLock
Gets the unique name of this distributed lock 获取此分布式锁的唯一名称
getName() - Method in interface cloud.opencode.base.lock.spi.DistributedLockProvider
Gets the unique name of this provider 获取此提供者的唯一名称
getNamedLockCount() - Method in class cloud.opencode.base.lock.manager.NamedLockFactory
Gets the number of named locks created 获取已创建的命名锁数量
getQueueLength() - Method in class cloud.opencode.base.lock.local.LocalLock
Gets the estimated number of threads waiting to acquire this lock 获取等待获取此锁的线程估计数量
getReadHoldCount() - Method in class cloud.opencode.base.lock.local.LocalReadWriteLock
Gets the number of read locks held by the current thread 获取当前线程持有的读锁数量
getReadLockCount() - Method in class cloud.opencode.base.lock.local.LocalReadWriteLock
Gets the total number of read locks held 获取持有的读锁总数
getReleaseCount() - Method in class cloud.opencode.base.lock.metrics.DefaultLockMetrics
 
getReleaseCount() - Method in interface cloud.opencode.base.lock.metrics.LockMetrics
Gets the total number of lock releases 获取锁释放的总次数
getRemainingTtl() - Method in interface cloud.opencode.base.lock.distributed.DistributedLock
Gets the remaining time-to-live of the lock 获取锁的剩余生存时间
getRemainingTtl() - Method in class cloud.opencode.base.lock.local.TtlLock
Gets the remaining TTL duration for the currently held lock 获取当前持有锁的剩余TTL时间
getRetryDelay() - Method in class cloud.opencode.base.lock.local.RetryLock
Gets the initial retry delay 获取初始重试延迟
getSegmentIndex(K) - Method in class cloud.opencode.base.lock.local.SegmentLock
Gets the segment index for the specified key 获取指定键对应的分段索引
getSegments() - Method in class cloud.opencode.base.lock.local.SegmentLock
Gets the total number of segments 获取总分段数
getStripes() - Method in class cloud.opencode.base.lock.manager.NamedLockFactory
Gets the number of stripes configured 获取配置的条纹数
getSuccessRate() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Calculates the lock acquisition success rate 计算锁获取成功率
getTimeoutCount() - Method in class cloud.opencode.base.lock.metrics.DefaultLockMetrics
 
getTimeoutCount() - Method in interface cloud.opencode.base.lock.metrics.LockMetrics
Gets the number of lock acquisition timeouts 获取锁获取超时次数
getTimeoutRate() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Calculates the lock acquisition timeout rate 计算锁获取超时率
getToken() - Method in class cloud.opencode.base.lock.event.ObservableLock
 
getToken() - Method in class cloud.opencode.base.lock.local.LocalLock
 
getToken() - Method in class cloud.opencode.base.lock.local.RetryLock
 
getToken() - Method in class cloud.opencode.base.lock.local.SpinLock
 
getToken() - Method in class cloud.opencode.base.lock.local.TtlLock
 
getToken() - Method in interface cloud.opencode.base.lock.Lock
Gets the current lock token 获取当前锁令牌
getTtl() - Method in class cloud.opencode.base.lock.local.TtlLock
Gets the configured TTL duration 获取配置的TTL时间
getValue() - Method in interface cloud.opencode.base.lock.distributed.DistributedLock
Gets the lock value/token for ownership verification 获取用于所有权验证的锁值/令牌
getWriteHoldCount() - Method in class cloud.opencode.base.lock.local.LocalReadWriteLock
Gets the number of write locks held by the current thread 获取当前线程持有的写锁数量
group() - Method in record class cloud.opencode.base.lock.manager.LockGroup.LockGroupGuard
Returns the value of the group record component.

H

hashCode() - Method in record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.lock.event.LockEvent
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.lock.LockConfig
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.lock.LockGuard
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.lock.manager.LockGroup.LockGroupGuard
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Returns a hash code value for this object.
hasLock(String) - Method in class cloud.opencode.base.lock.manager.LockManager
Checks if a lock with the given name exists 检查给定名称的锁是否存在
hasQueuedThreads() - Method in class cloud.opencode.base.lock.local.LocalLock
Checks if any threads are waiting to acquire this lock 检查是否有线程正在等待获取此锁

I

INTERRUPTED - Enum constant in enum class cloud.opencode.base.lock.exception.OpenLockException.LockErrorType
Interrupted - 被中断
isAvailable() - Method in interface cloud.opencode.base.lock.spi.DistributedLockProvider
Checks if this provider is currently available 检查此提供者当前是否可用
isExpired() - Method in interface cloud.opencode.base.lock.distributed.DistributedLock
Checks if the lock has expired 检查锁是否已过期
isExpired() - Method in class cloud.opencode.base.lock.local.TtlLock
Checks if the current lock hold has expired beyond the TTL 检查当前锁持有是否已超过TTL过期
isFair() - Method in class cloud.opencode.base.lock.local.LocalLock
Checks if this lock uses fair ordering policy 检查此锁是否使用公平排序策略
isHeldByCurrentThread() - Method in class cloud.opencode.base.lock.event.ObservableLock
 
isHeldByCurrentThread() - Method in class cloud.opencode.base.lock.local.LocalLock
 
isHeldByCurrentThread() - Method in class cloud.opencode.base.lock.local.RetryLock
 
isHeldByCurrentThread() - Method in class cloud.opencode.base.lock.local.SpinLock
 
isHeldByCurrentThread() - Method in class cloud.opencode.base.lock.local.TtlLock
 
isHeldByCurrentThread() - Method in interface cloud.opencode.base.lock.Lock
Checks if lock is held by current thread 检查当前线程是否持有锁
isIdModuleAvailable() - Static method in class cloud.opencode.base.lock.token.FencingTokenGenerator
Checks if the ID module is available.
isReadLocked() - Method in class cloud.opencode.base.lock.local.StampedLockAdapter
Checks if the lock is currently held for reading 检查锁当前是否被读取持有
isStripingEnabled() - Method in class cloud.opencode.base.lock.manager.NamedLockFactory
Checks if striping mode is enabled 检查是否启用条纹模式
isWriteLocked() - Method in class cloud.opencode.base.lock.local.LocalReadWriteLock
Checks if the write lock is held by any thread 检查写锁是否被任何线程持有
isWriteLocked() - Method in class cloud.opencode.base.lock.local.StampedLockAdapter
Checks if the lock is currently held for writing 检查锁当前是否被写入持有
isWriteLockedByCurrentThread() - Method in class cloud.opencode.base.lock.local.LocalReadWriteLock
Checks if the write lock is held by the current thread 检查当前线程是否持有写锁

L

leaseTime() - Method in record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Returns the value of the leaseTime record component.
leaseTime(Duration) - Method in class cloud.opencode.base.lock.distributed.DistributedLockConfig.Builder
Sets the lease time (TTL) for the lock 设置锁的租约时间(TTL)
LocalLock - Class in cloud.opencode.base.lock.local
Local Lock Implementation Based on JDK ReentrantLock 基于JDK ReentrantLock的本地锁实现
LocalLock() - Constructor for class cloud.opencode.base.lock.local.LocalLock
Creates a local lock with default configuration 使用默认配置创建本地锁
LocalLock(LockConfig) - Constructor for class cloud.opencode.base.lock.local.LocalLock
Creates a local lock with specified configuration 使用指定配置创建本地锁
LocalReadWriteLock - Class in cloud.opencode.base.lock.local
Local Read-Write Lock Implementation Based on JDK ReentrantReadWriteLock 基于JDK ReentrantReadWriteLock的本地读写锁实现
LocalReadWriteLock() - Constructor for class cloud.opencode.base.lock.local.LocalReadWriteLock
Creates a read-write lock with default configuration 使用默认配置创建读写锁
LocalReadWriteLock(LockConfig) - Constructor for class cloud.opencode.base.lock.local.LocalReadWriteLock
Creates a read-write lock with specified configuration 使用指定配置创建读写锁
lock() - Method in class cloud.opencode.base.lock.event.ObservableLock
 
lock() - Method in class cloud.opencode.base.lock.local.LocalLock
 
lock() - Method in class cloud.opencode.base.lock.local.RetryLock
 
lock() - Method in class cloud.opencode.base.lock.local.SpinLock
 
lock() - Method in class cloud.opencode.base.lock.local.TtlLock
 
lock() - Method in interface cloud.opencode.base.lock.Lock
Acquires the lock, blocking until available 获取锁,阻塞直到可用
lock() - Method in record class cloud.opencode.base.lock.LockGuard
Returns the value of the lock record component.
lock() - Static method in class cloud.opencode.base.lock.OpenLock
Creates a local reentrant lock with default configuration 使用默认配置创建本地可重入锁
lock(LockConfig) - Static method in class cloud.opencode.base.lock.OpenLock
Creates a local lock with specified configuration 使用指定配置创建本地锁
lock(Duration) - Method in class cloud.opencode.base.lock.event.ObservableLock
 
lock(Duration) - Method in class cloud.opencode.base.lock.local.LocalLock
 
lock(Duration) - Method in class cloud.opencode.base.lock.local.RetryLock
 
lock(Duration) - Method in class cloud.opencode.base.lock.local.SpinLock
 
lock(Duration) - Method in class cloud.opencode.base.lock.local.TtlLock
 
lock(Duration) - Method in interface cloud.opencode.base.lock.Lock
Acquires the lock with timeout 带超时获取锁
Lock<T> - Interface in cloud.opencode.base.lock
Unified Lock Interface for Local and Distributed Locks 本地锁和分布式锁的统一抽象接口
lockAll() - Method in class cloud.opencode.base.lock.manager.LockGroup
Acquires all locks in the group atomically 原子获取组内所有锁
LockConfig - Record Class in cloud.opencode.base.lock
Lock Configuration Record - Immutable Lock Settings 锁配置记录 - 不可变锁设置
LockConfig(Duration, boolean, boolean, int, boolean, LockType) - Constructor for record class cloud.opencode.base.lock.LockConfig
Creates an instance of a LockConfig record class.
LockConfig.Builder - Class in cloud.opencode.base.lock
Lock Configuration Builder 锁配置构建器
LockEvent - Record Class in cloud.opencode.base.lock.event
Lock Lifecycle Event Record 锁生命周期事件记录
LockEvent(LockEvent.EventType, String, String, long, Instant, Duration) - Constructor for record class cloud.opencode.base.lock.event.LockEvent
Compact constructor with validation and default values 紧凑构造器,包含验证和默认值
LockEvent.EventType - Enum Class in cloud.opencode.base.lock.event
Lock Event Type Enumeration 锁事件类型枚举
lockGroup() - Static method in class cloud.opencode.base.lock.OpenLock
Creates a lock group builder for atomic multi-lock acquisition 创建用于原子多锁获取的锁组构建器
LockGroup - Class in cloud.opencode.base.lock.manager
Lock Group for Atomic Multi-Lock Acquisition with Deadlock Prevention 带死锁预防的原子多锁获取锁组
LockGroup.Builder - Class in cloud.opencode.base.lock.manager
Lock Group Builder for Fluent API 锁组构建器 - 流式API
LockGroup.LockGroupGuard - Record Class in cloud.opencode.base.lock.manager
Lock Group Guard for Automatic Resource Release 锁组守卫 - 用于自动资源释放
LockGroupGuard(LockGroup) - Constructor for record class cloud.opencode.base.lock.manager.LockGroup.LockGroupGuard
Creates an instance of a LockGroupGuard record class.
LockGuard<T> - Record Class in cloud.opencode.base.lock
Lock Guard for Automatic Resource Release 锁守卫 - 用于自动资源释放
LockGuard(Lock, T) - Constructor for record class cloud.opencode.base.lock.LockGuard
Creates an instance of a LockGuard record class.
lockInterruptibly() - Method in class cloud.opencode.base.lock.event.ObservableLock
 
lockInterruptibly() - Method in class cloud.opencode.base.lock.local.LocalLock
 
lockInterruptibly() - Method in class cloud.opencode.base.lock.local.RetryLock
 
lockInterruptibly() - Method in class cloud.opencode.base.lock.local.SpinLock
 
lockInterruptibly() - Method in class cloud.opencode.base.lock.local.TtlLock
 
lockInterruptibly() - Method in interface cloud.opencode.base.lock.Lock
Acquires the lock interruptibly 可中断地获取锁
LockListener - Interface in cloud.opencode.base.lock.event
Lock Event Listener Interface 锁事件监听器接口
LockManager - Class in cloud.opencode.base.lock.manager
Lock Manager for Centralized Lock Creation and Management 集中式锁创建和管理的锁管理器
LockManager() - Constructor for class cloud.opencode.base.lock.manager.LockManager
Creates a lock manager with default configuration 使用默认配置创建锁管理器
LockManager(LockConfig) - Constructor for class cloud.opencode.base.lock.manager.LockManager
Creates a lock manager with specified configuration 使用指定配置创建锁管理器
LockManager(LockConfig, int) - Constructor for class cloud.opencode.base.lock.manager.LockManager
Creates a lock manager with specified configuration and maximum lock count 使用指定配置和最大锁数创建锁管理器
LockMetrics - Interface in cloud.opencode.base.lock.metrics
Lock Metrics Interface for Lock Usage Statistics 锁使用统计的锁指标接口
lockName() - Method in record class cloud.opencode.base.lock.event.LockEvent
Returns the value of the lockName record component.
lockName() - Method in exception class cloud.opencode.base.lock.exception.OpenLockException
Gets the name of the lock that caused the exception 获取导致异常的锁名称
LockStats - Record Class in cloud.opencode.base.lock.metrics
Lock Statistics Record - Immutable Snapshot of Lock Metrics 锁统计记录 - 锁指标的不可变快照
LockStats(long, long, long, long, Duration, Duration, int, Instant) - Constructor for record class cloud.opencode.base.lock.metrics.LockStats
Creates an instance of a LockStats record class.
lockTimeout() - Method in record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Returns the value of the lockTimeout record component.
lockTimeout(Duration) - Method in class cloud.opencode.base.lock.distributed.DistributedLockConfig.Builder
Sets the timeout for lock acquisition 设置锁获取超时
lockType() - Method in record class cloud.opencode.base.lock.LockConfig
Returns the value of the lockType record component.
lockType(LockType) - Method in class cloud.opencode.base.lock.LockConfig.Builder
Sets the lock type 设置锁类型
LockType - Enum Class in cloud.opencode.base.lock
Lock Type Enumeration 锁类型枚举

M

manager() - Static method in class cloud.opencode.base.lock.OpenLock
Gets the default singleton lock manager 获取默认单例锁管理器
manager(LockConfig) - Static method in class cloud.opencode.base.lock.OpenLock
Creates a new lock manager with specified configuration 使用指定配置创建新的锁管理器
maxDelay(Duration) - Method in class cloud.opencode.base.lock.local.RetryLock.Builder
Sets the maximum delay cap 设置最大延迟上限
maxRetries(int) - Method in class cloud.opencode.base.lock.local.RetryLock.Builder
Sets the maximum number of retry attempts 设置最大重试次数
maxWaitTime() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Returns the value of the maxWaitTime record component.

N

namedLockFactory() - Static method in class cloud.opencode.base.lock.OpenLock
Creates a named lock factory with default settings 使用默认设置创建命名锁工厂
namedLockFactory(int) - Static method in class cloud.opencode.base.lock.OpenLock
Creates a named lock factory with specified stripe count 使用指定条纹数创建命名锁工厂
NamedLockFactory - Class in cloud.opencode.base.lock.manager
Named Lock Factory with Striped Lock Pattern Support 支持条纹锁模式的命名锁工厂
NamedLockFactory() - Constructor for class cloud.opencode.base.lock.manager.NamedLockFactory
Creates a factory with default 64 stripes and striping enabled 使用默认64条纹和启用条纹模式创建工厂
NamedLockFactory(int) - Constructor for class cloud.opencode.base.lock.manager.NamedLockFactory
Creates a factory with specified number of stripes 使用指定条纹数创建工厂
NamedLockFactory(int, boolean, LockConfig) - Constructor for class cloud.opencode.base.lock.manager.NamedLockFactory
Creates a factory with full configuration 使用完整配置创建工厂
NOT_HELD - Enum constant in enum class cloud.opencode.base.lock.exception.OpenLockException.LockErrorType
Lock not held - 未持有锁

O

observableLock(Lock, String, LockListener...) - Static method in class cloud.opencode.base.lock.OpenLock
Wraps an existing lock with event observation 用事件观察包装现有锁
observableLock(String, LockListener...) - Static method in class cloud.opencode.base.lock.OpenLock
Creates an observable lock that fires events to listeners 创建向监听器触发事件的可观察锁
ObservableLock<T> - Class in cloud.opencode.base.lock.event
Observable Lock Decorator with Event Notification 带事件通知的可观察锁装饰器
ObservableLock(Lock, String) - Constructor for class cloud.opencode.base.lock.event.ObservableLock
Creates an observable lock wrapping the given delegate 创建包装给定委托的可观察锁
ObservableLock(Lock, String, LockListener...) - Constructor for class cloud.opencode.base.lock.event.ObservableLock
Creates an observable lock with initial listeners 创建带初始监听器的可观察锁
onEvent(LockEvent) - Method in interface cloud.opencode.base.lock.event.LockListener
Called when a lock event occurs 当锁事件发生时调用
OpenLock - Class in cloud.opencode.base.lock
OpenLock Facade - Unified Entry Point for Lock Component OpenLock 门面 - 锁组件统一入口
OpenLockAcquireException - Exception Class in cloud.opencode.base.lock.exception
Lock Acquisition Exception for Non-Timeout Failures 非超时失败的锁获取异常
OpenLockAcquireException(String) - Constructor for exception class cloud.opencode.base.lock.exception.OpenLockAcquireException
Constructs a new acquire exception with message 使用消息构造新的获取异常
OpenLockAcquireException(String, String, Throwable) - Constructor for exception class cloud.opencode.base.lock.exception.OpenLockAcquireException
Constructs a new acquire exception with lock name and cause 使用锁名称和原因构造新的获取异常
OpenLockAcquireException(String, Throwable) - Constructor for exception class cloud.opencode.base.lock.exception.OpenLockAcquireException
Constructs a new acquire exception with message and cause 使用消息和原因构造新的获取异常
OpenLockException - Exception Class in cloud.opencode.base.lock.exception
Base Lock Exception for All Lock-Related Errors 所有锁相关错误的基础锁异常
OpenLockException(String) - Constructor for exception class cloud.opencode.base.lock.exception.OpenLockException
Constructs a new lock exception with message 使用消息构造新的锁异常
OpenLockException(String, String, OpenLockException.LockErrorType) - Constructor for exception class cloud.opencode.base.lock.exception.OpenLockException
Constructs a new lock exception with full details 使用完整详情构造新的锁异常
OpenLockException(String, String, OpenLockException.LockErrorType, Throwable) - Constructor for exception class cloud.opencode.base.lock.exception.OpenLockException
Constructs a new lock exception with full details and cause 使用完整详情和原因构造新的锁异常
OpenLockException(String, Throwable) - Constructor for exception class cloud.opencode.base.lock.exception.OpenLockException
Constructs a new lock exception with message and cause 使用消息和原因构造新的锁异常
OpenLockException.LockErrorType - Enum Class in cloud.opencode.base.lock.exception
Lock Error Type Enumeration 锁错误类型枚举
OpenLockTimeoutException - Exception Class in cloud.opencode.base.lock.exception
Lock Timeout Exception for Acquisition Timeout 获取超时的锁超时异常
OpenLockTimeoutException(String) - Constructor for exception class cloud.opencode.base.lock.exception.OpenLockTimeoutException
Constructs a new timeout exception with message 使用消息构造新的超时异常
OpenLockTimeoutException(String, String, Duration) - Constructor for exception class cloud.opencode.base.lock.exception.OpenLockTimeoutException
Constructs a new timeout exception with lock name and wait time 使用锁名称和等待时间构造新的超时异常
OpenLockTimeoutException(String, Duration) - Constructor for exception class cloud.opencode.base.lock.exception.OpenLockTimeoutException
Constructs a new timeout exception with wait time 使用等待时间构造新的超时异常
optimisticRead(Supplier) - Method in class cloud.opencode.base.lock.local.StampedLockAdapter
Performs an optimistic read operation with automatic fallback 执行乐观读操作并自动降级
optimisticRead(Supplier, Duration) - Method in class cloud.opencode.base.lock.local.StampedLockAdapter
Performs an optimistic read with timeout for fallback lock acquisition 执行乐观读操作,降级时使用指定超时

Q

Quick Start | 快速开始 - Section in package cloud.opencode.base.lock
 
Quick Start | 快速开始 - Section in package cloud.opencode.base.lock.event
 

R

READ_WRITE - Enum constant in enum class cloud.opencode.base.lock.LockType
Read-write lock - allows concurrent readers, exclusive writers 读写锁 - 允许并发读取,排他写入
readLock() - Method in class cloud.opencode.base.lock.local.LocalReadWriteLock
 
readLock() - Method in class cloud.opencode.base.lock.local.StampedLockAdapter
 
readLock() - Method in interface cloud.opencode.base.lock.ReadWriteLock
Gets the read lock for concurrent read access 获取用于并发读取访问的读锁
readWriteLock() - Static method in class cloud.opencode.base.lock.OpenLock
Creates a read-write lock allowing concurrent readers 创建允许并发读取的读写锁
readWriteLock(LockConfig) - Static method in class cloud.opencode.base.lock.OpenLock
Creates a read-write lock with specified configuration 使用指定配置创建读写锁
ReadWriteLock<T> - Interface in cloud.opencode.base.lock
Read-Write Lock Interface for Concurrent Read Access 读写锁接口 - 支持并发读取访问
recordAcquire(Duration) - Method in class cloud.opencode.base.lock.metrics.DefaultLockMetrics
Records a successful lock acquisition 记录成功的锁获取
recordRelease() - Method in class cloud.opencode.base.lock.metrics.DefaultLockMetrics
Records a lock release 记录锁释放
recordTimeout() - Method in class cloud.opencode.base.lock.metrics.DefaultLockMetrics
Records a lock acquisition timeout 记录锁获取超时
reentrant() - Method in record class cloud.opencode.base.lock.LockConfig
Returns the value of the reentrant record component.
reentrant(boolean) - Method in class cloud.opencode.base.lock.LockConfig.Builder
Sets whether the lock should be reentrant 设置锁是否应该是可重入的
REENTRANT - Enum constant in enum class cloud.opencode.base.lock.LockType
Reentrant lock - allows recursive locking by same thread 可重入锁 - 允许同一线程递归锁定
RELEASE - Enum constant in enum class cloud.opencode.base.lock.exception.OpenLockException.LockErrorType
Release failed - 释放失败
releaseAll() - Method in class cloud.opencode.base.lock.manager.LockGroup
Releases all acquired locks in reverse order 按相反顺序释放所有已获取的锁
releaseCount() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Returns the value of the releaseCount record component.
released(String) - Static method in record class cloud.opencode.base.lock.event.LockEvent
Creates a RELEASED event 创建RELEASED事件
RELEASED - Enum constant in enum class cloud.opencode.base.lock.event.LockEvent.EventType
Lock released | 锁释放
removeListener(LockListener) - Method in class cloud.opencode.base.lock.event.ObservableLock
Removes a listener from receiving lock events 移除监听器使其不再接收锁事件
removeLock(String) - Method in class cloud.opencode.base.lock.manager.LockManager
Removes a lock by name and closes it 按名称移除锁并关闭它
renewInterval() - Method in record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Returns the value of the renewInterval record component.
renewInterval(Duration) - Method in class cloud.opencode.base.lock.distributed.DistributedLockConfig.Builder
Sets the interval for automatic lock renewal 设置自动锁续期的间隔
reset() - Method in class cloud.opencode.base.lock.metrics.DefaultLockMetrics
 
reset() - Method in interface cloud.opencode.base.lock.metrics.LockMetrics
Resets all metrics to their initial values 重置所有指标为初始值
retryCount() - Method in record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Returns the value of the retryCount record component.
retryCount(int) - Method in class cloud.opencode.base.lock.distributed.DistributedLockConfig.Builder
Sets the number of retry attempts on failure 设置失败时的重试次数
retryDelay(Duration) - Method in class cloud.opencode.base.lock.local.RetryLock.Builder
Sets the initial delay between retries 设置重试之间的初始延迟
retryInterval() - Method in record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Returns the value of the retryInterval record component.
retryInterval(Duration) - Method in class cloud.opencode.base.lock.distributed.DistributedLockConfig.Builder
Sets the interval between retry attempts 设置重试尝试之间的间隔
retryLock() - Static method in class cloud.opencode.base.lock.OpenLock
Creates a retry lock wrapping a new local lock with default retry settings 使用默认重试设置包装新本地锁创建重试锁
retryLock(Lock) - Static method in class cloud.opencode.base.lock.OpenLock
Creates a retry lock builder wrapping the specified lock 创建包装指定锁的重试锁构建器
RetryLock<T> - Class in cloud.opencode.base.lock.local
Retry Lock Decorator with Exponential Backoff 带指数退避的重试锁装饰器
RetryLock(Lock) - Constructor for class cloud.opencode.base.lock.local.RetryLock
Creates a retry lock with default configuration 使用默认配置创建重试锁
RetryLock(Lock, int, Duration, double, Duration) - Constructor for class cloud.opencode.base.lock.local.RetryLock
Creates a retry lock with custom configuration 使用自定义配置创建重试锁
RetryLock.Builder<T> - Class in cloud.opencode.base.lock.local
Builder for RetryLock Configuration RetryLock 配置构建器

S

SEGMENT - Enum constant in enum class cloud.opencode.base.lock.LockType
Segment lock - partitioned locks for fine-grained control 分段锁 - 用于细粒度控制的分区锁
segmentLock() - Static method in class cloud.opencode.base.lock.OpenLock
Creates a segment lock with default 16 segments 使用默认16个分段创建分段锁
segmentLock(int) - Static method in class cloud.opencode.base.lock.OpenLock
Creates a segment lock with specified number of segments 使用指定分段数创建分段锁
SegmentLock<K> - Class in cloud.opencode.base.lock.local
Segment Lock Implementation for Fine-Grained Locking 细粒度锁定的分段锁实现
SegmentLock() - Constructor for class cloud.opencode.base.lock.local.SegmentLock
Creates a segment lock with default 16 segments 使用默认16个分段创建分段锁
SegmentLock(int) - Constructor for class cloud.opencode.base.lock.local.SegmentLock
Creates a segment lock with specified number of segments 使用指定分段数创建分段锁
SegmentLock(int, LockConfig) - Constructor for class cloud.opencode.base.lock.local.SegmentLock
Creates a segment lock with specified segments and configuration 使用指定分段数和配置创建分段锁
shutdown() - Method in interface cloud.opencode.base.lock.spi.DistributedLockProvider
Shuts down the provider and releases resources 关闭提供者并释放资源
size() - Method in class cloud.opencode.base.lock.manager.LockGroup
Gets the total number of locks in the group 获取锁组中的锁总数
snapshot() - Method in class cloud.opencode.base.lock.metrics.DefaultLockMetrics
 
snapshot() - Method in interface cloud.opencode.base.lock.metrics.LockMetrics
Gets an immutable snapshot of the current metrics 获取当前指标的不可变快照
SPIN - Enum constant in enum class cloud.opencode.base.lock.LockType
Spin lock - busy-waits for short critical sections 自旋锁 - 用于短临界区的忙等待
spinCount() - Method in record class cloud.opencode.base.lock.LockConfig
Returns the value of the spinCount record component.
spinCount(int) - Method in class cloud.opencode.base.lock.LockConfig.Builder
Sets the maximum spin count for spin locks 设置自旋锁的最大自旋次数
spinLock() - Static method in class cloud.opencode.base.lock.OpenLock
Creates a spin lock for very short critical sections 为极短临界区创建自旋锁
spinLock(int) - Static method in class cloud.opencode.base.lock.OpenLock
Creates a spin lock with custom max spin count 使用自定义最大自旋次数创建自旋锁
SpinLock - Class in cloud.opencode.base.lock.local
Spin Lock Implementation for Short Critical Sections 短临界区自旋锁实现
SpinLock() - Constructor for class cloud.opencode.base.lock.local.SpinLock
Creates a spin lock with default configuration 使用默认配置创建自旋锁
SpinLock(LockConfig) - Constructor for class cloud.opencode.base.lock.local.SpinLock
Creates a spin lock with specified configuration 使用指定配置创建自旋锁
STAMPED - Enum constant in enum class cloud.opencode.base.lock.LockType
Stamped lock - supports optimistic read locking 印戳锁 - 支持乐观读锁定
stampedLock() - Static method in class cloud.opencode.base.lock.OpenLock
Creates a stamped lock adapter with optimistic read support 创建支持乐观读的戳记锁适配器
stampedLock(LockConfig) - Static method in class cloud.opencode.base.lock.OpenLock
Creates a stamped lock adapter with specified configuration 使用指定配置创建戳记锁适配器
StampedLockAdapter - Class in cloud.opencode.base.lock.local
StampedLock Adapter - Safe Wrapper Around JDK StampedLock StampedLock 适配器 - JDK StampedLock 的安全封装
StampedLockAdapter() - Constructor for class cloud.opencode.base.lock.local.StampedLockAdapter
Creates a StampedLock adapter with default configuration 使用默认配置创建 StampedLock 适配器
StampedLockAdapter(LockConfig) - Constructor for class cloud.opencode.base.lock.local.StampedLockAdapter
Creates a StampedLock adapter with specified configuration 使用指定配置创建 StampedLock 适配器

T

threadId() - Method in record class cloud.opencode.base.lock.event.LockEvent
Returns the value of the threadId record component.
threadName() - Method in record class cloud.opencode.base.lock.event.LockEvent
Returns the value of the threadName record component.
timeout(String, Duration) - Static method in record class cloud.opencode.base.lock.event.LockEvent
Creates a TIMEOUT event with wait time 创建带等待时间的TIMEOUT事件
timeout(Duration) - Method in class cloud.opencode.base.lock.LockConfig.Builder
Sets the default timeout for lock acquisition 设置锁获取的默认超时
timeout(Duration) - Method in class cloud.opencode.base.lock.manager.LockGroup.Builder
Sets the timeout for acquiring all locks 设置获取所有锁的超时
TIMEOUT - Enum constant in enum class cloud.opencode.base.lock.event.LockEvent.EventType
Lock acquisition timed out | 锁获取超时
TIMEOUT - Enum constant in enum class cloud.opencode.base.lock.exception.OpenLockException.LockErrorType
Timeout error - 超时
timeoutCount() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Returns the value of the timeoutCount record component.
timestamp() - Method in record class cloud.opencode.base.lock.event.LockEvent
Returns the value of the timestamp record component.
timestamp() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Returns the value of the timestamp record component.
token() - Method in record class cloud.opencode.base.lock.LockGuard
Returns the value of the token record component.
toString() - Method in record class cloud.opencode.base.lock.distributed.DistributedLockConfig
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.lock.event.LockEvent
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.lock.LockConfig
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.lock.LockGuard
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.lock.manager.LockGroup.LockGroupGuard
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.lock.metrics.LockStats
Returns a string representation of this record class.
tryLock() - Method in class cloud.opencode.base.lock.event.ObservableLock
 
tryLock() - Method in class cloud.opencode.base.lock.local.LocalLock
 
tryLock() - Method in class cloud.opencode.base.lock.local.RetryLock
 
tryLock() - Method in class cloud.opencode.base.lock.local.SpinLock
 
tryLock() - Method in class cloud.opencode.base.lock.local.TtlLock
 
tryLock() - Method in interface cloud.opencode.base.lock.Lock
Tries to acquire the lock immediately without waiting 立即尝试获取锁,不等待
tryLock(Duration) - Method in class cloud.opencode.base.lock.event.ObservableLock
 
tryLock(Duration) - Method in class cloud.opencode.base.lock.local.LocalLock
 
tryLock(Duration) - Method in class cloud.opencode.base.lock.local.RetryLock
 
tryLock(Duration) - Method in class cloud.opencode.base.lock.local.SpinLock
 
tryLock(Duration) - Method in class cloud.opencode.base.lock.local.TtlLock
 
tryLock(Duration) - Method in interface cloud.opencode.base.lock.Lock
Tries to acquire the lock with timeout 带超时尝试获取锁
tryLockAll() - Method in class cloud.opencode.base.lock.manager.LockGroup
Tries to acquire all locks without waiting 无等待尝试获取所有锁
tryLockAll(Duration) - Method in class cloud.opencode.base.lock.manager.LockGroup
Tries to acquire all locks with specified timeout 使用指定超时尝试获取所有锁
ttlLock(Duration) - Static method in class cloud.opencode.base.lock.OpenLock
Creates a lock with TTL (Time-To-Live) auto-expiry 创建带 TTL(生存时间)自动过期的锁
ttlLock(Duration, boolean) - Static method in class cloud.opencode.base.lock.OpenLock
Creates a fair TTL lock 创建公平TTL锁
TtlLock - Class in cloud.opencode.base.lock.local
Time-To-Live Lock with Automatic Expiry 带自动过期的生存时间锁
TtlLock(Duration) - Constructor for class cloud.opencode.base.lock.local.TtlLock
Creates a TTL lock with the specified time-to-live and unfair ordering 使用指定的生存时间和非公平排序创建TTL锁
TtlLock(Duration, boolean) - Constructor for class cloud.opencode.base.lock.local.TtlLock
Creates a TTL lock with the specified time-to-live and fairness policy 使用指定的生存时间和公平策略创建TTL锁
type() - Method in record class cloud.opencode.base.lock.event.LockEvent
Returns the value of the type record component.

U

unlock() - Method in class cloud.opencode.base.lock.event.ObservableLock
 
unlock() - Method in class cloud.opencode.base.lock.local.LocalLock
 
unlock() - Method in class cloud.opencode.base.lock.local.RetryLock
 
unlock() - Method in class cloud.opencode.base.lock.local.SpinLock
 
unlock() - Method in class cloud.opencode.base.lock.local.TtlLock
 
unlock() - Method in interface cloud.opencode.base.lock.Lock
Releases the lock 释放锁

V

valueOf(String) - Static method in enum class cloud.opencode.base.lock.event.LockEvent.EventType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.lock.exception.OpenLockException.LockErrorType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.lock.LockType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class cloud.opencode.base.lock.event.LockEvent.EventType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.lock.exception.OpenLockException.LockErrorType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.lock.LockType
Returns an array containing the constants of this enum class, in the order they are declared.

W

waitTime() - Method in record class cloud.opencode.base.lock.event.LockEvent
Returns the value of the waitTime record component.
waitTime() - Method in exception class cloud.opencode.base.lock.exception.OpenLockTimeoutException
Gets the time spent waiting before the timeout occurred 获取超时发生前的等待时间
writeLock() - Method in class cloud.opencode.base.lock.local.LocalReadWriteLock
 
writeLock() - Method in class cloud.opencode.base.lock.local.StampedLockAdapter
 
writeLock() - Method in interface cloud.opencode.base.lock.ReadWriteLock
Gets the write lock for exclusive write access 获取用于独占写入访问的写锁
A B C D E F G H I L M N O Q R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form