Index
All Classes and Interfaces|All Packages|Serialized Form
A
- ABANDONED - Enum constant in enum class cloud.opencode.base.pool.factory.PooledObjectState
-
Object has been abandoned (not returned within timeout).
- ACTIVATE - Enum constant in enum class cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
-
Object activation failed - 激活对象失败
- activateFailed(String, Throwable) - Static method in exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates object activation failed exception.
- activateObject(PooledObject) - Method in class cloud.opencode.base.pool.factory.BasePooledObjectFactory
- activateObject(PooledObject) - Method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory
-
Activates a pooled object.
- activateObject(PooledObject) - Method in interface cloud.opencode.base.pool.PooledObjectFactory
-
Activates a pooled object.
- activateObject(K, PooledObject) - Method in class cloud.opencode.base.pool.factory.BaseKeyedPooledObjectFactory
- activateObject(K, PooledObject) - Method in interface cloud.opencode.base.pool.factory.KeyedPooledObjectFactory
-
Activates a pooled object for the given key.
- activator(Consumer) - Method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory.Builder
-
Sets the activator callback.
- addObject() - Method in class cloud.opencode.base.pool.impl.GenericObjectPool
- addObject() - Method in class cloud.opencode.base.pool.impl.SoftReferencePool
- addObject() - Method in class cloud.opencode.base.pool.impl.ThreadLocalPool
- addObject() - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
- addObject() - Method in interface cloud.opencode.base.pool.ObjectPool
-
Adds a new object to the pool.
- allEviction(EvictionPolicy...) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a composite eviction policy (all must match).
- ALLOCATED - Enum constant in enum class cloud.opencode.base.pool.factory.PooledObjectState
-
Object has been allocated to a client.
- anyEviction(EvictionPolicy...) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a composite eviction policy (any can match).
- available() - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
-
Gets available count 获取可用数量
- avgBorrowDuration() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Returns the value of the
avgBorrowDurationrecord component. - avgWaitDuration() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Returns the value of the
avgWaitDurationrecord component.
B
- BaseKeyedPooledObjectFactory<K,
V> - Class in cloud.opencode.base.pool.factory -
BaseKeyedPooledObjectFactory - Base Keyed Pooled Object Factory BaseKeyedPooledObjectFactory - 基础键控池化对象工厂
- BaseKeyedPooledObjectFactory() - Constructor for class cloud.opencode.base.pool.factory.BaseKeyedPooledObjectFactory
- BasePooledObjectFactory<T> - Class in cloud.opencode.base.pool.factory
-
BasePooledObjectFactory - Base Pooled Object Factory BasePooledObjectFactory - 基础池化对象工厂
- BasePooledObjectFactory() - Constructor for class cloud.opencode.base.pool.factory.BasePooledObjectFactory
- BLOCK - Enum constant in enum class cloud.opencode.base.pool.policy.WaitPolicy
-
Block and wait for an object to become available.
- blockWhenExhausted() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Checks if blocking wait is enabled.
- borrowAsync() - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
-
Borrows an object asynchronously 异步借用对象
- borrowAsync(Duration) - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
-
Borrows an object asynchronously with timeout 带超时的异步借用对象
- borrowCount() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Returns the value of the
borrowCountrecord component. - borrowDuration() - Method in record class cloud.opencode.base.pool.tracker.PooledObjectTracker.TrackedObject
-
Gets the duration since borrow.
- borrowLease() - Method in interface cloud.opencode.base.pool.ObjectPool
-
Borrows an object wrapped in a
PoolLeasefor try-with-resources. - borrowLease(Duration) - Method in interface cloud.opencode.base.pool.ObjectPool
-
Borrows an object wrapped in a
PoolLeasewith timeout for try-with-resources. - borrowObject() - Method in class cloud.opencode.base.pool.impl.GenericObjectPool
- borrowObject() - Method in class cloud.opencode.base.pool.impl.SoftReferencePool
- borrowObject() - Method in class cloud.opencode.base.pool.impl.ThreadLocalPool
- borrowObject() - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
- borrowObject() - Method in interface cloud.opencode.base.pool.ObjectPool
-
Borrows an object from the pool.
- borrowObject(Duration) - Method in class cloud.opencode.base.pool.impl.GenericObjectPool
- borrowObject(Duration) - Method in class cloud.opencode.base.pool.impl.SoftReferencePool
- borrowObject(Duration) - Method in class cloud.opencode.base.pool.impl.ThreadLocalPool
- borrowObject(Duration) - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
- borrowObject(Duration) - Method in interface cloud.opencode.base.pool.ObjectPool
-
Borrows an object from the pool with timeout.
- borrowObject(K) - Method in class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
- borrowObject(K) - Method in interface cloud.opencode.base.pool.KeyedObjectPool
-
Borrows an object for the given key.
- borrowObject(K, Duration) - Method in class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
- borrowObject(K, Duration) - Method in interface cloud.opencode.base.pool.KeyedObjectPool
-
Borrows an object for the given key with timeout.
- borrowTime() - Method in class cloud.opencode.base.pool.PoolContext
-
Gets borrow time 获取借用时间
- borrowTime() - Method in record class cloud.opencode.base.pool.tracker.PooledObjectTracker.TrackedObject
-
Returns the value of the
borrowTimerecord component. - build() - Method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory.Builder
-
Builds the factory.
- build() - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Builds the configuration.
- builder() - Static method in record class cloud.opencode.base.pool.PoolConfig
-
Creates a builder for PoolConfig.
- builder(Supplier) - Static method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory
-
Creates a builder with the specified creator.
- Builder() - Constructor for class cloud.opencode.base.pool.PoolConfig.Builder
C
- checkAndHandleAbandoned() - Method in class cloud.opencode.base.pool.tracker.PooledObjectTracker
-
Checks for abandoned objects and invokes callback.
- Choosing a Pool | 选择池 - Section in package cloud.opencode.base.pool.impl
- Classes | 类 - Section in package cloud.opencode.base.pool.exception
- Classes | 类 - Section in package cloud.opencode.base.pool.factory
- Classes | 类 - Section in package cloud.opencode.base.pool.impl
- Classes | 类 - Section in package cloud.opencode.base.pool.metrics
- Classes | 类 - Section in package cloud.opencode.base.pool.policy
- Classes | 类 - Section in package cloud.opencode.base.pool.tracker
- clear() - Method in class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
- clear() - Method in class cloud.opencode.base.pool.impl.GenericObjectPool
- clear() - Method in class cloud.opencode.base.pool.impl.SoftReferencePool
- clear() - Method in class cloud.opencode.base.pool.impl.ThreadLocalPool
- clear() - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
- clear() - Method in interface cloud.opencode.base.pool.KeyedObjectPool
-
Clears all objects for all keys.
- clear() - Method in interface cloud.opencode.base.pool.ObjectPool
-
Clears all idle objects from the pool.
- clear() - Method in class cloud.opencode.base.pool.tracker.PooledObjectTracker
-
Clears all tracked objects.
- clear(K) - Method in class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
- clear(K) - Method in interface cloud.opencode.base.pool.KeyedObjectPool
-
Clears objects for the given key.
- close() - Method in class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
- close() - Method in class cloud.opencode.base.pool.impl.GenericObjectPool
- close() - Method in class cloud.opencode.base.pool.impl.SoftReferencePool
- close() - Method in class cloud.opencode.base.pool.impl.ThreadLocalPool
- close() - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
- close() - Method in class cloud.opencode.base.pool.PoolLease
-
Closes the lease and returns (or invalidates) the object.
- closed(String) - Static method in exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates pool closed exception.
- CLOSED - Enum constant in enum class cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
-
Pool closed - 池已关闭
- cloud.opencode.base.pool - module cloud.opencode.base.pool
-
OpenCode Base Pool Module OpenCode 基础对象池模块
- cloud.opencode.base.pool - package cloud.opencode.base.pool
-
Pool Package - High-Performance Object Pool (JDK 25) Pool包 - 高性能对象池 (JDK 25)
- cloud.opencode.base.pool.exception - package cloud.opencode.base.pool.exception
-
Exception Package - Pool Exceptions 异常包 - 池异常
- cloud.opencode.base.pool.factory - package cloud.opencode.base.pool.factory
-
Factory Package - Pooled Object Factories 工厂包 - 池化对象工厂
- cloud.opencode.base.pool.impl - package cloud.opencode.base.pool.impl
-
Impl Package - Pool Implementations 实现包 - 池实现
- cloud.opencode.base.pool.metrics - package cloud.opencode.base.pool.metrics
-
Metrics Package - Pool Metrics and Statistics 指标包 - 池指标和统计
- cloud.opencode.base.pool.policy - package cloud.opencode.base.pool.policy
-
Policy Package - Pool Policies (JDK 25 Sealed Types) 策略包 - 池策略 (JDK 25 密封类型)
- cloud.opencode.base.pool.tracker - package cloud.opencode.base.pool.tracker
-
Tracker Package - Object Tracking and Leak Detection 追踪包 - 对象追踪和泄漏检测
- compareAndSetState(PooledObjectState, PooledObjectState) - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
- compareAndSetState(PooledObjectState, PooledObjectState) - Method in interface cloud.opencode.base.pool.PooledObject
-
Compares and sets the state atomically.
- Composite(List, boolean) - Constructor for record class cloud.opencode.base.pool.policy.EvictionPolicy.Composite
-
Creates an instance of a
Compositerecord class. - configBuilder() - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a pool configuration builder.
- Core Interfaces | 核心接口 - Section in package cloud.opencode.base.pool
- create() - Method in class cloud.opencode.base.pool.factory.BasePooledObjectFactory
-
Creates the actual object instance.
- create() - Static method in class cloud.opencode.base.pool.PoolContext
-
Creates a new pool context with default name 使用默认名称创建新的池上下文
- create(PooledObjectFactory, PoolConfig) - Static method in class cloud.opencode.base.pool.impl.VirtualThreadPool
-
Creates a VirtualThreadPool with factory and config 使用工厂和配置创建 VirtualThreadPool
- create(String) - Static method in class cloud.opencode.base.pool.PoolContext
-
Creates a new pool context 创建新的池上下文
- create(K) - Method in class cloud.opencode.base.pool.factory.BaseKeyedPooledObjectFactory
-
Creates the actual object instance for the given key.
- CREATE - Enum constant in enum class cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
-
Object creation failed - 创建对象失败
- createdAt() - Method in class cloud.opencode.base.pool.PoolContext
-
Gets creation time 获取创建时间
- createdCount() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Returns the value of the
createdCountrecord component. - createFailed(String, Throwable) - Static method in exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates object creation failed exception.
- createKeyedPool(KeyedPooledObjectFactory) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a keyed object pool with default configuration.
- createKeyedPool(KeyedPooledObjectFactory, PoolConfig) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a keyed object pool with custom configuration.
- createPool(PooledObjectFactory) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a generic object pool with default configuration.
- createPool(PooledObjectFactory, PoolConfig) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a generic object pool with custom configuration.
- createPool(Supplier) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a pool from a Supplier (simplest API).
- createPool(Supplier, PoolConfig) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a pool from a Supplier with custom configuration.
- createPool(Supplier, Consumer) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a pool from a Supplier with a destroyer Consumer.
- createPool(Supplier, Consumer, PoolConfig) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a pool from a Supplier with a destroyer and custom configuration.
- createSoftReferencePool(PooledObjectFactory) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a soft reference pool (GC-friendly).
- createSoftReferencePool(PooledObjectFactory, PoolConfig) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a soft reference pool with custom configuration.
- createThreadLocalPool(PooledObjectFactory) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a thread-local pool (one object per thread).
- createVirtualThreadPool(PooledObjectFactory) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a virtual thread optimized pool with default configuration.
- createVirtualThreadPool(PooledObjectFactory, PoolConfig) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a virtual thread optimized pool with custom configuration.
- creationRate() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Gets the creation rate (created/borrowed).
- current() - Static method in class cloud.opencode.base.pool.PoolContext
-
Gets the current pool context 获取当前池上下文
- CURRENT - Static variable in class cloud.opencode.base.pool.PoolContext
-
Current pool context (ScopedValue) 当前池上下文 (ScopedValue)
- currentActive() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Returns the value of the
currentActiverecord component. - currentActiveCount() - Method in record class cloud.opencode.base.pool.policy.EvictionContext
-
Returns the value of the
currentActiveCountrecord component. - currentIdle() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Returns the value of the
currentIdlerecord component. - currentIdleCount() - Method in record class cloud.opencode.base.pool.policy.EvictionContext
-
Returns the value of the
currentIdleCountrecord component. - currentOrCreate() - Static method in class cloud.opencode.base.pool.PoolContext
-
Gets the current context or creates a new one 获取当前上下文或创建新的
D
- defaultConfig() - Static method in class cloud.opencode.base.pool.OpenPool
-
Gets the default pool configuration.
- DefaultPooledObject<T> - Class in cloud.opencode.base.pool.factory
-
DefaultPooledObject - Default Pooled Object Implementation DefaultPooledObject - 默认池化对象实现
- DefaultPooledObject(T) - Constructor for class cloud.opencode.base.pool.factory.DefaultPooledObject
-
Creates a new pooled object wrapper.
- DefaultPoolMetrics - Class in cloud.opencode.base.pool.metrics
-
DefaultPoolMetrics - Default Pool Metrics Implementation DefaultPoolMetrics - 默认池指标实现
- DefaultPoolMetrics() - Constructor for class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
-
Creates a new metrics instance.
- defaults() - Static method in record class cloud.opencode.base.pool.PoolConfig
-
Creates default configuration.
- DESTROY - Enum constant in enum class cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
-
Object destruction failed - 销毁对象失败
- destroyedCount() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Returns the value of the
destroyedCountrecord component. - destroyer(Consumer) - Method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory.Builder
-
Sets the destroyer callback.
- destroyFailed(String, Throwable) - Static method in exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates object destruction failed exception.
- destroyObject(PooledObject) - Method in class cloud.opencode.base.pool.factory.BasePooledObjectFactory
- destroyObject(PooledObject) - Method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory
-
Destroys a pooled object.
- destroyObject(PooledObject) - Method in interface cloud.opencode.base.pool.PooledObjectFactory
-
Destroys a pooled object.
- destroyObject(K, PooledObject) - Method in class cloud.opencode.base.pool.factory.BaseKeyedPooledObjectFactory
- destroyObject(K, PooledObject) - Method in interface cloud.opencode.base.pool.factory.KeyedPooledObjectFactory
-
Destroys a pooled object for the given key.
E
- Entry Point | 入口点 - Section in package cloud.opencode.base.pool
- equals(Object) - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.pool.policy.EvictionContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.Composite
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.IdleTime
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.LFU
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.LRU
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.MaxAge
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.pool.PoolConfig
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.pool.tracker.PooledObjectTracker.TrackedObject
-
Indicates whether some other object is "equal to" this one.
- errorType() - Method in exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Gets the error type.
- eventListener() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
eventListenerrecord component. - eventListener(PoolEventListener) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets the pool event listener.
- evict(PooledObject, EvictionContext) - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.Composite
- evict(PooledObject, EvictionContext) - Method in interface cloud.opencode.base.pool.policy.EvictionPolicy
-
Determines if the object should be evicted.
- evict(PooledObject, EvictionContext) - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.IdleTime
- evict(PooledObject, EvictionContext) - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.LFU
- evict(PooledObject, EvictionContext) - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.LRU
- evict(PooledObject, EvictionContext) - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.MaxAge
- EVICTION - Enum constant in enum class cloud.opencode.base.pool.factory.PooledObjectState
-
Object is being evicted from the pool.
- EvictionContext - Record Class in cloud.opencode.base.pool.policy
-
EvictionContext - Eviction Context Record (JDK 25 Record) EvictionContext - 驱逐上下文记录 (JDK 25 Record)
- EvictionContext(int, int, int, Instant) - Constructor for record class cloud.opencode.base.pool.policy.EvictionContext
-
Creates an instance of a
EvictionContextrecord class. - Eviction Policies | 驱逐策略 - Section in package cloud.opencode.base.pool.policy
- evictionPolicy() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
evictionPolicyrecord component. - evictionPolicy(EvictionPolicy) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets the eviction policy.
- EvictionPolicy<T> - Interface in cloud.opencode.base.pool.policy
-
EvictionPolicy - Sealed Eviction Policy Interface (JDK 25 Sealed) EvictionPolicy - 密封驱逐策略接口 (JDK 25 Sealed)
- EvictionPolicy.Composite<T> - Record Class in cloud.opencode.base.pool.policy
-
Composite eviction policy.
- EvictionPolicy.IdleTime<T> - Record Class in cloud.opencode.base.pool.policy
-
Idle time based eviction policy.
- EvictionPolicy.LFU<T> - Record Class in cloud.opencode.base.pool.policy
-
Least Frequently Used eviction policy.
- EvictionPolicy.LRU<T> - Record Class in cloud.opencode.base.pool.policy
-
Least Recently Used eviction policy.
- EvictionPolicy.MaxAge<T> - Record Class in cloud.opencode.base.pool.policy
-
Maximum age eviction policy.
- evictionTime() - Method in record class cloud.opencode.base.pool.policy.EvictionContext
-
Returns the value of the
evictionTimerecord component. - execute(Consumer) - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
- execute(Consumer) - Method in interface cloud.opencode.base.pool.ObjectPool
-
Executes a void action with a pooled object (auto-return).
- execute(Function) - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
- execute(Function) - Method in interface cloud.opencode.base.pool.ObjectPool
-
Executes an action with a pooled object (auto-return).
- execute(K, BiFunction) - Method in interface cloud.opencode.base.pool.KeyedObjectPool
-
Executes an action with a pooled object (auto-return).
- executeAsync(Function) - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
-
Executes action asynchronously 异步执行操作
- exhausted(String) - Static method in exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates pool exhausted exception.
- EXHAUSTED - Enum constant in enum class cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
-
Pool exhausted - 池耗尽
- export(String, PoolMetrics) - Static method in class cloud.opencode.base.pool.metrics.ObservabilityMetricsExporter
-
Exports pool metrics to Observability.
- export(String, String, PoolMetrics) - Static method in class cloud.opencode.base.pool.metrics.ObservabilityMetricsExporter
-
Exports pool metrics with custom prefix.
F
- FAIL - Enum constant in enum class cloud.opencode.base.pool.policy.WaitPolicy
-
Fail immediately with an exception.
G
- GENERAL - Enum constant in enum class cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
-
General error - 一般错误
- GenericKeyedObjectPool<K,
V> - Class in cloud.opencode.base.pool.impl -
GenericKeyedObjectPool - Generic Keyed Object Pool Implementation GenericKeyedObjectPool - 通用键控对象池实现
- GenericKeyedObjectPool(KeyedPooledObjectFactory) - Constructor for class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
-
Creates a keyed pool with default configuration.
- GenericKeyedObjectPool(KeyedPooledObjectFactory, PoolConfig) - Constructor for class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
-
Creates a keyed pool with custom configuration.
- GenericObjectPool<T> - Class in cloud.opencode.base.pool.impl
-
GenericObjectPool - Generic Object Pool Implementation GenericObjectPool - 通用对象池实现
- GenericObjectPool(PooledObjectFactory) - Constructor for class cloud.opencode.base.pool.impl.GenericObjectPool
-
Creates a pool with default configuration.
- GenericObjectPool(PooledObjectFactory, PoolConfig) - Constructor for class cloud.opencode.base.pool.impl.GenericObjectPool
-
Creates a pool with custom configuration.
- get() - Method in class cloud.opencode.base.pool.PoolLease
-
Gets the borrowed object.
- getAbandonedObjects() - Method in class cloud.opencode.base.pool.tracker.PooledObjectTracker
-
Gets abandoned objects (borrowed longer than timeout).
- getActiveDuration() - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
- getActiveDuration() - Method in interface cloud.opencode.base.pool.PooledObject
-
Gets the active duration (time since last borrow).
- getAttribute(String) - Method in class cloud.opencode.base.pool.PoolContext
-
Gets an attribute 获取属性
- getAverageBorrowDuration() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
- getAverageBorrowDuration() - Method in interface cloud.opencode.base.pool.metrics.PoolMetrics
-
Gets the average borrow duration.
- getAverageWaitDuration() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
- getAverageWaitDuration() - Method in interface cloud.opencode.base.pool.metrics.PoolMetrics
-
Gets the average wait duration.
- getBorrowCount() - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
- getBorrowCount() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
- getBorrowCount() - Method in interface cloud.opencode.base.pool.metrics.PoolMetrics
-
Gets the total borrow count.
- getBorrowCount() - Method in interface cloud.opencode.base.pool.PooledObject
-
Gets the borrow count.
- getCreatedCount() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
- getCreatedCount() - Method in interface cloud.opencode.base.pool.metrics.PoolMetrics
-
Gets the total created count.
- getCreateInstant() - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
- getCreateInstant() - Method in interface cloud.opencode.base.pool.PooledObject
-
Gets the creation instant.
- getDestroyedCount() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
- getDestroyedCount() - Method in interface cloud.opencode.base.pool.metrics.PoolMetrics
-
Gets the total destroyed count.
- getIdleDuration() - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
- getIdleDuration() - Method in interface cloud.opencode.base.pool.PooledObject
-
Gets the idle duration (time since last return).
- getLastBorrowInstant() - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
- getLastBorrowInstant() - Method in interface cloud.opencode.base.pool.PooledObject
-
Gets the last borrow instant.
- getLastReturnInstant() - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
- getLastReturnInstant() - Method in interface cloud.opencode.base.pool.PooledObject
-
Gets the last return instant.
- getLastUseInstant() - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
- getLastUseInstant() - Method in interface cloud.opencode.base.pool.PooledObject
-
Gets the last use instant.
- getMaxBorrowDuration() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
- getMaxBorrowDuration() - Method in interface cloud.opencode.base.pool.metrics.PoolMetrics
-
Gets the maximum borrow duration.
- getMetrics() - Method in class cloud.opencode.base.pool.impl.GenericObjectPool
- getMetrics() - Method in class cloud.opencode.base.pool.impl.SoftReferencePool
- getMetrics() - Method in class cloud.opencode.base.pool.impl.ThreadLocalPool
- getMetrics() - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
- getMetrics() - Method in interface cloud.opencode.base.pool.ObjectPool
-
Gets the pool metrics.
- getNumActive() - Method in class cloud.opencode.base.pool.impl.GenericObjectPool
- getNumActive() - Method in class cloud.opencode.base.pool.impl.SoftReferencePool
- getNumActive() - Method in class cloud.opencode.base.pool.impl.ThreadLocalPool
- getNumActive() - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
- getNumActive() - Method in interface cloud.opencode.base.pool.ObjectPool
-
Gets the number of active (borrowed) objects.
- getNumActive(K) - Method in class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
- getNumActive(K) - Method in interface cloud.opencode.base.pool.KeyedObjectPool
-
Gets the active count for the given key.
- getNumIdle() - Method in class cloud.opencode.base.pool.impl.GenericObjectPool
- getNumIdle() - Method in class cloud.opencode.base.pool.impl.SoftReferencePool
- getNumIdle() - Method in class cloud.opencode.base.pool.impl.ThreadLocalPool
- getNumIdle() - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
- getNumIdle() - Method in interface cloud.opencode.base.pool.ObjectPool
-
Gets the number of idle objects.
- getNumIdle(K) - Method in class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
- getNumIdle(K) - Method in interface cloud.opencode.base.pool.KeyedObjectPool
-
Gets the idle count for the given key.
- getNumKeys() - Method in class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
- getNumKeys() - Method in interface cloud.opencode.base.pool.KeyedObjectPool
-
Gets the total number of keys.
- getObject() - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
- getObject() - Method in interface cloud.opencode.base.pool.PooledObject
-
Gets the actual pooled object.
- getReturnCount() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
- getReturnCount() - Method in interface cloud.opencode.base.pool.metrics.PoolMetrics
-
Gets the total return count.
- getState() - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
- getState() - Method in interface cloud.opencode.base.pool.PooledObject
-
Gets the current state.
- getTotalNumActive() - Method in class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
-
Gets total active count across all keys.
- getTotalNumIdle() - Method in class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
-
Gets total idle count across all keys.
- getTrackedCount() - Method in class cloud.opencode.base.pool.tracker.PooledObjectTracker
-
Gets the number of currently tracked objects.
- getTrackedObjects() - Method in class cloud.opencode.base.pool.tracker.PooledObjectTracker
-
Gets all currently tracked objects.
- GROW - Enum constant in enum class cloud.opencode.base.pool.policy.WaitPolicy
-
Grow the pool beyond maxTotal (use with caution).
H
- hasAnyValidation() - Method in record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Checks if any validation is enabled.
- hasAttribute(String) - Method in class cloud.opencode.base.pool.PoolContext
-
Checks if attribute exists 检查属性是否存在
- hasBorrowedObject() - Method in class cloud.opencode.base.pool.PoolContext
-
Checks if an object is currently borrowed 检查是否有对象当前被借用
- hashCode() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.pool.policy.EvictionContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.Composite
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.IdleTime
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.LFU
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.LRU
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.MaxAge
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.pool.tracker.PooledObjectTracker.TrackedObject
-
Returns a hash code value for this object.
- hitRate() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Gets the hit rate (returns/borrows).
I
- IDLE - Enum constant in enum class cloud.opencode.base.pool.factory.PooledObjectState
-
Object is idle in the pool, available for borrowing.
- idleRatio() - Method in record class cloud.opencode.base.pool.policy.EvictionContext
-
Gets the idle ratio.
- IdleTime(Duration) - Constructor for record class cloud.opencode.base.pool.policy.EvictionPolicy.IdleTime
-
Creates an instance of a
IdleTimerecord class. - idleTimeEviction(Duration) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates an idle time eviction policy.
- INVALID - Enum constant in enum class cloud.opencode.base.pool.factory.PooledObjectState
-
Object has been invalidated and will be destroyed.
- INVALID_STATE - Enum constant in enum class cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
-
Invalid state - 非法状态
- invalidate() - Method in class cloud.opencode.base.pool.PoolLease
-
Marks the object as invalid so that it will be destroyed instead of returned to the pool when the lease is closed.
- invalidateObject(K, V) - Method in class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
- invalidateObject(K, V) - Method in interface cloud.opencode.base.pool.KeyedObjectPool
-
Invalidates an object for the given key.
- invalidateObject(T) - Method in class cloud.opencode.base.pool.impl.GenericObjectPool
- invalidateObject(T) - Method in class cloud.opencode.base.pool.impl.SoftReferencePool
- invalidateObject(T) - Method in class cloud.opencode.base.pool.impl.ThreadLocalPool
- invalidateObject(T) - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
- invalidateObject(T) - Method in interface cloud.opencode.base.pool.ObjectPool
-
Invalidates an object (will not be returned to pool).
- invalidState(String) - Static method in exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates invalid state exception.
- isAtCapacity() - Method in record class cloud.opencode.base.pool.policy.EvictionContext
-
Checks if the pool is at capacity.
- isClosed() - Method in class cloud.opencode.base.pool.PoolLease
-
Checks whether the lease has been closed.
- isEvictionEnabled() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Checks if eviction is enabled.
- isLifetimeEnabled() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Checks if maximum object lifetime eviction is enabled.
- isObservabilityModuleAvailable() - Static method in class cloud.opencode.base.pool.metrics.ObservabilityMetricsExporter
-
Checks if the Observability module is available.
- isVirtualThread() - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
-
Checks if running on virtual thread 检查是否运行在虚拟线程上
- isVirtualThread() - Method in class cloud.opencode.base.pool.PoolContext
-
Checks if on virtual thread 检查是否在虚拟线程上
K
- KeyedObjectPool<K,
V> - Interface in cloud.opencode.base.pool -
KeyedObjectPool - Keyed Object Pool Interface KeyedObjectPool - 键控对象池接口
- KeyedPooledObjectFactory<K,
V> - Interface in cloud.opencode.base.pool.factory -
KeyedPooledObjectFactory - Keyed Pooled Object Factory Interface KeyedPooledObjectFactory - 键控池化对象工厂接口
L
- LFU(long) - Constructor for record class cloud.opencode.base.pool.policy.EvictionPolicy.LFU
-
Creates an instance of a
LFUrecord class. - lfuEviction(long) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates an LFU eviction policy.
- lifo() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
liforecord component. - lifo(boolean) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets LIFO ordering.
- LRU(int) - Constructor for record class cloud.opencode.base.pool.policy.EvictionPolicy.LRU
-
Creates an instance of a
LRUrecord class. - lruEviction(int) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates an LRU eviction policy.
M
- makeObject() - Method in class cloud.opencode.base.pool.factory.BasePooledObjectFactory
- makeObject() - Method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory
-
Creates a new pooled object.
- makeObject() - Method in interface cloud.opencode.base.pool.PooledObjectFactory
-
Creates a new pooled object.
- makeObject(K) - Method in class cloud.opencode.base.pool.factory.BaseKeyedPooledObjectFactory
- makeObject(K) - Method in interface cloud.opencode.base.pool.factory.KeyedPooledObjectFactory
-
Creates a new pooled object for the given key.
- markBorrowed() - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
-
Marks the object as borrowed (zero-allocation).
- markBorrowed(long) - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
-
Marks the object as borrowed with a pre-captured nanoTime (avoids extra System.nanoTime() call).
- markReturned() - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
-
Marks the object as returned (zero-allocation).
- MaxAge(Duration) - Constructor for record class cloud.opencode.base.pool.policy.EvictionPolicy.MaxAge
-
Creates an instance of a
MaxAgerecord class. - maxAgeEviction(Duration) - Static method in class cloud.opencode.base.pool.OpenPool
-
Creates a max age eviction policy.
- maxBorrowDuration() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Returns the value of the
maxBorrowDurationrecord component. - maxIdle() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
maxIdlerecord component. - maxIdle(int) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets the maximum idle objects.
- maxIdleTime() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.IdleTime
-
Returns the value of the
maxIdleTimerecord component. - maxLifetime() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.MaxAge
-
Returns the value of the
maxLifetimerecord component. - maxObjectLifetime() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
maxObjectLifetimerecord component. - maxObjectLifetime(Duration) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets the maximum object lifetime before forced eviction.
- maxObjects() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.LRU
-
Returns the value of the
maxObjectsrecord component. - maxTotal() - Method in record class cloud.opencode.base.pool.policy.EvictionContext
-
Returns the value of the
maxTotalrecord component. - maxTotal() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
maxTotalrecord component. - maxTotal(int) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets the maximum total objects.
- maxWait() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
maxWaitrecord component. - maxWait(Duration) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets the maximum wait time.
- MetricsSnapshot - Record Class in cloud.opencode.base.pool.metrics
-
MetricsSnapshot - Metrics Snapshot Record (JDK 25 Record) MetricsSnapshot - 指标快照记录 (JDK 25 Record)
- MetricsSnapshot(long, long, long, long, int, int, Duration, Duration, Duration, Instant) - Constructor for record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Creates an instance of a
MetricsSnapshotrecord class. - minBorrowCount() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.LFU
-
Returns the value of the
minBorrowCountrecord component. - minEvictableIdleTime() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
minEvictableIdleTimerecord component. - minEvictableIdleTime(Duration) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets the minimum evictable idle time.
- minIdle() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
minIdlerecord component. - minIdle(int) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets the minimum idle objects.
N
- none() - Static method in record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Creates a no-validation policy.
- numTestsPerEvictionRun() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
numTestsPerEvictionRunrecord component. - numTestsPerEvictionRun(int) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets the number of tests per eviction run.
O
- ObjectPool<T> - Interface in cloud.opencode.base.pool
-
ObjectPool - Object Pool Interface ObjectPool - 对象池接口
- ObservabilityMetricsExporter - Class in cloud.opencode.base.pool.metrics
-
Observability Metrics Exporter with Optional Observability Module Delegation 支持可选 Observability 模块委托的指标导出器
- of(Supplier) - Static method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory
-
Creates a factory with only a creator.
- of(Supplier, Consumer) - Static method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory
-
Creates a factory with a creator and destroyer.
- onBorrow() - Static method in record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Creates a borrow-only validation policy.
- onBorrow(T) - Method in interface cloud.opencode.base.pool.PoolEventListener
-
Called after an object is successfully borrowed from the pool.
- onCreate(T) - Method in interface cloud.opencode.base.pool.PoolEventListener
-
Called after a new object is successfully created by the pool.
- onDestroy(T) - Method in interface cloud.opencode.base.pool.PoolEventListener
-
Called before an object is destroyed by the pool.
- onEvict(T) - Method in interface cloud.opencode.base.pool.PoolEventListener
-
Called before an object is evicted from the pool.
- onExhausted() - Method in interface cloud.opencode.base.pool.PoolEventListener
-
Called when the pool is exhausted (no objects available and at max capacity).
- onReturn(T) - Method in interface cloud.opencode.base.pool.PoolEventListener
-
Called after an object is successfully returned to the pool.
- onTimeout(Duration) - Method in interface cloud.opencode.base.pool.PoolEventListener
-
Called when a borrow request times out.
- OpenPool - Class in cloud.opencode.base.pool
-
OpenPool - Pool Component Facade Entry Class OpenPool - 池组件门面入口类
- OpenPoolException - Exception Class in cloud.opencode.base.pool.exception
-
OpenPoolException - Pool Exception OpenPoolException - 对象池异常
- OpenPoolException(String) - Constructor for exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates exception with message.
- OpenPoolException(String, String, OpenPoolException.PoolErrorType) - Constructor for exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates exception with full details.
- OpenPoolException(String, String, OpenPoolException.PoolErrorType, Throwable) - Constructor for exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates exception with full details and cause.
- OpenPoolException(String, Throwable) - Constructor for exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates exception with message and cause.
- OpenPoolException.PoolErrorType - Enum Class in cloud.opencode.base.pool.exception
-
Pool error type enumeration.
P
- PASSIVATE - Enum constant in enum class cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
-
Object passivation failed - 钝化对象失败
- passivateFailed(String, Throwable) - Static method in exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates object passivation failed exception.
- passivateObject(PooledObject) - Method in class cloud.opencode.base.pool.factory.BasePooledObjectFactory
- passivateObject(PooledObject) - Method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory
-
Passivates a pooled object.
- passivateObject(PooledObject) - Method in interface cloud.opencode.base.pool.PooledObjectFactory
-
Passivates a pooled object.
- passivateObject(K, PooledObject) - Method in class cloud.opencode.base.pool.factory.BaseKeyedPooledObjectFactory
- passivateObject(K, PooledObject) - Method in interface cloud.opencode.base.pool.factory.KeyedPooledObjectFactory
-
Passivates a pooled object for the given key.
- passivator(Consumer) - Method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory.Builder
-
Sets the passivator callback.
- policies() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.Composite
-
Returns the value of the
policiesrecord component. - PoolConfig - Record Class in cloud.opencode.base.pool
-
PoolConfig - Pool Configuration Record (JDK 25 Record) PoolConfig - 池配置记录 (JDK 25 Record)
- PoolConfig(int, int, int, Duration, Duration, Duration, int, boolean, boolean, boolean, boolean, WaitPolicy, boolean, EvictionPolicy, Duration, PoolEventListener) - Constructor for record class cloud.opencode.base.pool.PoolConfig
-
Creates an instance of a
PoolConfigrecord class. - PoolConfig.Builder - Class in cloud.opencode.base.pool
-
Builder for PoolConfig.
- PoolContext - Class in cloud.opencode.base.pool
-
Pool Context - ScopedValue-based Pool Context 池上下文 - 基于 ScopedValue 的池上下文
- pooledObject() - Method in record class cloud.opencode.base.pool.tracker.PooledObjectTracker.TrackedObject
-
Returns the value of the
pooledObjectrecord component. - PooledObject<T> - Interface in cloud.opencode.base.pool
-
PooledObject - Pooled Object Wrapper Interface PooledObject - 池化对象包装接口
- PooledObjectFactory<T> - Interface in cloud.opencode.base.pool
-
PooledObjectFactory - Pooled Object Factory Interface PooledObjectFactory - 池化对象工厂接口
- PooledObjectState - Enum Class in cloud.opencode.base.pool.factory
-
PooledObjectState - Pooled Object State Enumeration PooledObjectState - 池化对象状态枚举
- PooledObjectTracker<T> - Class in cloud.opencode.base.pool.tracker
-
PooledObjectTracker - Pooled Object Tracker PooledObjectTracker - 池化对象追踪器
- PooledObjectTracker() - Constructor for class cloud.opencode.base.pool.tracker.PooledObjectTracker
-
Creates a tracker with default settings.
- PooledObjectTracker(Duration, boolean, Consumer) - Constructor for class cloud.opencode.base.pool.tracker.PooledObjectTracker
-
Creates a tracker with custom settings.
- PooledObjectTracker.TrackedObject<T> - Record Class in cloud.opencode.base.pool.tracker
-
Tracked object information.
- PoolEventListener<T> - Interface in cloud.opencode.base.pool
-
PoolEventListener - Pool Lifecycle Event Listener PoolEventListener - 池生命周期事件监听器
- PoolLease<T> - Class in cloud.opencode.base.pool
-
PoolLease - AutoCloseable Lease for Borrowed Pool Objects PoolLease - 借用池对象的自动关闭租约
- PoolMetrics - Interface in cloud.opencode.base.pool.metrics
-
PoolMetrics - Pool Metrics Interface PoolMetrics - 池指标接口
- poolName() - Method in exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Gets the pool name.
- poolName() - Method in class cloud.opencode.base.pool.PoolContext
-
Gets the pool name 获取池名称
- preparePool(int) - Method in interface cloud.opencode.base.pool.ObjectPool
-
Pre-creates objects to warm up the pool.
Q
- Quick Start | 快速开始 - Section in package cloud.opencode.base.pool
R
- recommended() - Static method in record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Creates a recommended validation policy (borrow + idle).
- recordBorrow() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
-
Records a borrow operation.
- recordBorrow(Object) - Method in class cloud.opencode.base.pool.PoolContext
-
Records object borrow 记录对象借用
- recordBorrowDuration(Duration) - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
-
Records a borrow duration.
- recordCreate() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
-
Records an object creation.
- recordDestroy() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
-
Records an object destruction.
- recordReturn() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
-
Records a return operation.
- recordReturn() - Method in class cloud.opencode.base.pool.PoolContext
-
Records object return 记录对象归还
- recordWaitDuration(Duration) - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
-
Records a wait duration.
- recordWaitNanos(long) - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
-
Records a wait duration in nanoseconds (zero-allocation fast path).
- requireAll() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.Composite
-
Returns the value of the
requireAllrecord component. - reset() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
-
Resets all counters to zero.
- returnCount() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Returns the value of the
returnCountrecord component. - RETURNING - Enum constant in enum class cloud.opencode.base.pool.factory.PooledObjectState
-
Object is being returned to the pool.
- returnObject(K, V) - Method in class cloud.opencode.base.pool.impl.GenericKeyedObjectPool
- returnObject(K, V) - Method in interface cloud.opencode.base.pool.KeyedObjectPool
-
Returns an object for the given key.
- returnObject(T) - Method in class cloud.opencode.base.pool.impl.GenericObjectPool
- returnObject(T) - Method in class cloud.opencode.base.pool.impl.SoftReferencePool
- returnObject(T) - Method in class cloud.opencode.base.pool.impl.ThreadLocalPool
- returnObject(T) - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
- returnObject(T) - Method in interface cloud.opencode.base.pool.ObjectPool
-
Returns an object to the pool.
- returnTime() - Method in class cloud.opencode.base.pool.PoolContext
-
Gets return time 获取归还时间
- run(PoolContext, Runnable) - Static method in class cloud.opencode.base.pool.PoolContext
-
Runs a runnable within this context 在此上下文中运行可运行对象
- run(PoolContext, ScopedValue.CallableOp) - Static method in class cloud.opencode.base.pool.PoolContext
-
Runs a callable within this context 在此上下文中运行可调用对象
S
- setActiveSupplier(IntSupplier) - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
-
Sets the active count supplier.
- setAttribute(String, Object) - Method in class cloud.opencode.base.pool.PoolContext
-
Sets an attribute 设置属性
- setIdleSupplier(IntSupplier) - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
-
Sets the idle count supplier.
- setState(PooledObjectState) - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
-
Sets the state directly (use with caution).
- SimplePooledObjectFactory<T> - Class in cloud.opencode.base.pool.factory
-
SimplePooledObjectFactory - Functional Pooled Object Factory SimplePooledObjectFactory - 函数式池化对象工厂
- SimplePooledObjectFactory.Builder<T> - Class in cloud.opencode.base.pool.factory
-
Builder for SimplePooledObjectFactory.
- size() - Method in class cloud.opencode.base.pool.impl.VirtualThreadPool
-
Gets total created count 获取创建的总数
- snapshot() - Method in class cloud.opencode.base.pool.metrics.DefaultPoolMetrics
- snapshot() - Method in interface cloud.opencode.base.pool.metrics.PoolMetrics
-
Creates a snapshot of current metrics.
- SoftReferencePool<T> - Class in cloud.opencode.base.pool.impl
-
SoftReferencePool - Soft Reference Object Pool SoftReferencePool - 软引用对象池
- SoftReferencePool(PooledObjectFactory) - Constructor for class cloud.opencode.base.pool.impl.SoftReferencePool
-
Creates a soft reference pool with default configuration.
- SoftReferencePool(PooledObjectFactory, PoolConfig) - Constructor for class cloud.opencode.base.pool.impl.SoftReferencePool
-
Creates a soft reference pool with custom configuration.
- stackTrace() - Method in record class cloud.opencode.base.pool.tracker.PooledObjectTracker.TrackedObject
-
Returns the value of the
stackTracerecord component. - stackTraceString() - Method in record class cloud.opencode.base.pool.tracker.PooledObjectTracker.TrackedObject
-
Gets the stack trace as string.
- strict() - Static method in record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Creates a strict validation policy (all validations).
T
- testOnBorrow() - Method in record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Returns the value of the
testOnBorrowrecord component. - testOnBorrow() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
testOnBorrowrecord component. - testOnBorrow(boolean) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets whether to test on borrow.
- testOnCreate() - Method in record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Returns the value of the
testOnCreaterecord component. - testOnCreate() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
testOnCreaterecord component. - testOnCreate(boolean) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets whether to test on create.
- testOnReturn() - Method in record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Returns the value of the
testOnReturnrecord component. - testOnReturn() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
testOnReturnrecord component. - testOnReturn(boolean) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets whether to test on return.
- testWhileIdle() - Method in record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Returns the value of the
testWhileIdlerecord component. - testWhileIdle() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
testWhileIdlerecord component. - testWhileIdle(boolean) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets whether to test while idle.
- thread() - Method in class cloud.opencode.base.pool.PoolContext
-
Gets the thread 获取线程
- ThreadLocalPool<T> - Class in cloud.opencode.base.pool.impl
-
ThreadLocalPool - Thread Local Object Pool ThreadLocalPool - 线程本地对象池
- ThreadLocalPool(PooledObjectFactory) - Constructor for class cloud.opencode.base.pool.impl.ThreadLocalPool
-
Creates a thread-local pool.
- threadName() - Method in record class cloud.opencode.base.pool.tracker.PooledObjectTracker.TrackedObject
-
Returns the value of the
threadNamerecord component. - timeBetweenEvictionRuns() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
timeBetweenEvictionRunsrecord component. - timeBetweenEvictionRuns(Duration) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets the time between eviction runs.
- timeout(String, Duration) - Static method in exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates timeout exception.
- TIMEOUT - Enum constant in enum class cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
-
Timeout waiting - 超时
- timestamp() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Returns the value of the
timestamprecord component. - toString() - Method in class cloud.opencode.base.pool.factory.DefaultPooledObject
- toString() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.pool.policy.EvictionContext
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.Composite
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.IdleTime
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.LFU
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.LRU
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.pool.policy.EvictionPolicy.MaxAge
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns a string representation of this record class.
- toString() - Method in class cloud.opencode.base.pool.PoolContext
- toString() - Method in record class cloud.opencode.base.pool.tracker.PooledObjectTracker.TrackedObject
-
Returns a string representation of this record class.
- totalCount() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Gets the total object count.
- totalCount() - Method in record class cloud.opencode.base.pool.policy.EvictionContext
-
Gets the total object count.
- trackBorrow(PooledObject) - Method in class cloud.opencode.base.pool.tracker.PooledObjectTracker
-
Tracks a borrowed object.
- TrackedObject(PooledObject, Instant, String, StackTraceElement[]) - Constructor for record class cloud.opencode.base.pool.tracker.PooledObjectTracker.TrackedObject
-
Creates an instance of a
TrackedObjectrecord class. - trackReturn(PooledObject) - Method in class cloud.opencode.base.pool.tracker.PooledObjectTracker
-
Tracks a returned object.
U
- utilizationRate() - Method in record class cloud.opencode.base.pool.metrics.MetricsSnapshot
-
Gets the utilization rate (active/total).
V
- validateObject(PooledObject) - Method in class cloud.opencode.base.pool.factory.BasePooledObjectFactory
- validateObject(PooledObject) - Method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory
-
Validates a pooled object.
- validateObject(PooledObject) - Method in interface cloud.opencode.base.pool.PooledObjectFactory
-
Validates a pooled object.
- validateObject(K, PooledObject) - Method in class cloud.opencode.base.pool.factory.BaseKeyedPooledObjectFactory
- validateObject(K, PooledObject) - Method in interface cloud.opencode.base.pool.factory.KeyedPooledObjectFactory
-
Validates a pooled object for the given key.
- VALIDATION - Enum constant in enum class cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
-
Validation failed - 验证失败
- VALIDATION - Enum constant in enum class cloud.opencode.base.pool.factory.PooledObjectState
-
Object is being validated.
- validationFailed(String) - Static method in exception class cloud.opencode.base.pool.exception.OpenPoolException
-
Creates validation failed exception.
- ValidationPolicy - Record Class in cloud.opencode.base.pool.policy
-
ValidationPolicy - Validation Policy Record (JDK 25 Record) ValidationPolicy - 验证策略记录 (JDK 25 Record)
- ValidationPolicy(boolean, boolean, boolean, boolean) - Constructor for record class cloud.opencode.base.pool.policy.ValidationPolicy
-
Creates an instance of a
ValidationPolicyrecord class. - validator(Predicate) - Method in class cloud.opencode.base.pool.factory.SimplePooledObjectFactory.Builder
-
Sets the validator callback.
- valueOf(String) - Static method in enum class cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.pool.factory.PooledObjectState
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.pool.policy.WaitPolicy
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
-
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.pool.factory.PooledObjectState
-
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.pool.policy.WaitPolicy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VirtualThreadPool<T> - Class in cloud.opencode.base.pool.impl
-
VirtualThreadPool - Virtual Thread Friendly Object Pool VirtualThreadPool - 虚拟线程友好的对象池
- VirtualThreadPool(PooledObjectFactory, PoolConfig) - Constructor for class cloud.opencode.base.pool.impl.VirtualThreadPool
-
Creates a new VirtualThreadPool 创建新的 VirtualThreadPool
W
- waitPolicy() - Method in record class cloud.opencode.base.pool.PoolConfig
-
Returns the value of the
waitPolicyrecord component. - waitPolicy(WaitPolicy) - Method in class cloud.opencode.base.pool.PoolConfig.Builder
-
Sets the wait policy.
- WaitPolicy - Enum Class in cloud.opencode.base.pool.policy
-
WaitPolicy - Wait Policy Enumeration WaitPolicy - 等待策略枚举
- wrap(T) - Method in class cloud.opencode.base.pool.factory.BasePooledObjectFactory
-
Wraps an object in a PooledObject wrapper.
- wrap(V) - Method in class cloud.opencode.base.pool.factory.BaseKeyedPooledObjectFactory
-
Wraps an object in a PooledObject wrapper.
All Classes and Interfaces|All Packages|Serialized Form