Uses of Class
cloud.opencode.base.pool.PoolContext
Packages that use PoolContext
Package
Description
Pool Package - High-Performance Object Pool (JDK 25)
Pool包 - 高性能对象池 (JDK 25)
-
Uses of PoolContext in cloud.opencode.base.pool
Fields in cloud.opencode.base.pool with type parameters of type PoolContextModifier and TypeFieldDescriptionstatic final ScopedValue<PoolContext> PoolContext.CURRENTCurrent pool context (ScopedValue) 当前池上下文 (ScopedValue)Methods in cloud.opencode.base.pool that return PoolContextModifier and TypeMethodDescriptionstatic PoolContextPoolContext.create()Creates a new pool context with default name 使用默认名称创建新的池上下文static PoolContextCreates a new pool context 创建新的池上下文static PoolContextPoolContext.currentOrCreate()Gets the current context or creates a new one 获取当前上下文或创建新的PoolContext.setAttribute(String key, Object value) Sets an attribute 设置属性Methods in cloud.opencode.base.pool that return types with arguments of type PoolContextModifier and TypeMethodDescriptionstatic Optional<PoolContext> PoolContext.current()Gets the current pool context 获取当前池上下文Methods in cloud.opencode.base.pool with parameters of type PoolContextModifier and TypeMethodDescriptionstatic voidPoolContext.run(PoolContext context, Runnable task) Runs a runnable within this context 在此上下文中运行可运行对象static <T, X extends Throwable>
TPoolContext.run(PoolContext context, ScopedValue.CallableOp<T, X> task) Runs a callable within this context 在此上下文中运行可调用对象