Index

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

A

acquire() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Acquires a permit, blocking until available.
allFailed(List) - Static method in exception class cloud.opencode.base.parallel.exception.OpenParallelException
Creates an all-failed exception.
andThen(Function) - Method in interface cloud.opencode.base.parallel.pipeline.TriFunction
Returns a composed function that first applies this function to its input, and then applies the after function to the result.
apply(T1, T2, T3) - Method in interface cloud.opencode.base.parallel.pipeline.TriFunction
Applies this function to the given arguments.
async(Runnable) - Static method in class cloud.opencode.base.parallel.OpenParallel
Creates an async runnable.
async(Supplier) - Static method in class cloud.opencode.base.parallel.OpenParallel
Creates an async supplier.
AsyncPipeline<T> - Class in cloud.opencode.base.parallel.pipeline
Async Pipeline - Asynchronous Processing Pipeline 异步流水线 - 异步处理流水线
AsyncPipeline(CompletableFuture) - Constructor for class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Constructs a new async pipeline.
availablePermits() - Method in class cloud.opencode.base.parallel.executor.TokenBucketRateLimiter
Returns the current number of available permits (after refill).

B

BatchProcessor - Class in cloud.opencode.base.parallel.batch
Batch Processor - Parallel Batch Processing Utility 批处理器 - 并行批处理工具
BatchProcessor.BatchProgress - Record Class in cloud.opencode.base.parallel.batch
Batch progress information.
BatchProcessor.Builder - Class in cloud.opencode.base.parallel.batch
Builder for BatchProcessor.
BatchProgress(int, int, int) - Constructor for record class cloud.opencode.base.parallel.batch.BatchProcessor.BatchProgress
Creates an instance of a BatchProgress record class.
batchSize(int) - Method in class cloud.opencode.base.parallel.batch.BatchProcessor.Builder
Sets the batch size.
build() - Method in class cloud.opencode.base.parallel.batch.BatchProcessor.Builder
Builds the processor.
build() - Method in class cloud.opencode.base.parallel.executor.ExecutorConfig.Builder
Builds the config.
build() - Method in class cloud.opencode.base.parallel.executor.HybridExecutor.Builder
Builds the HybridExecutor.
build() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor.Builder
Builds the executor.
builder() - Static method in class cloud.opencode.base.parallel.batch.BatchProcessor
Creates a new builder.
builder() - Static method in class cloud.opencode.base.parallel.executor.ExecutorConfig
Creates a new builder.
builder() - Static method in class cloud.opencode.base.parallel.executor.HybridExecutor
Creates a new builder.
builder() - Static method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Creates a builder for more configuration options.
burstCapacity(long) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor.Builder
Sets the burst capacity.

C

call(String, String, Callable) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Calls a task with trace ID and user ID bound.
callWith(ScopedValue, T, Callable) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Calls a task with a custom scoped value bound.
callWithTraceId(String, Callable) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Calls a task with trace ID bound.
callWithUserId(String, Callable) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Calls a task with user ID bound.
cancel(boolean) - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Cancels the pipeline.
Classes | 类 - Section in package cloud.opencode.base.parallel.batch
 
Classes | 类 - Section in package cloud.opencode.base.parallel.exception
 
Classes | 类 - Section in package cloud.opencode.base.parallel.executor
 
Classes | 类 - Section in package cloud.opencode.base.parallel.pipeline
 
Classes | 类 - Section in package cloud.opencode.base.parallel.structured
 
close() - Method in class cloud.opencode.base.parallel.batch.BatchProcessor
Shuts down the internal executor if it is not user-provided.
close() - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
 
close() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
 
close() - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
 
cloud.opencode.base.parallel - module cloud.opencode.base.parallel
OpenCode Base Parallel Module OpenCode 基础并行模块
cloud.opencode.base.parallel - package cloud.opencode.base.parallel
OpenCode Parallel - Modern Parallel Computing Utilities OpenCode 并行 - 现代化并行计算工具
cloud.opencode.base.parallel.batch - package cloud.opencode.base.parallel.batch
Batch Package - Batch Processing Utilities 批处理包 - 批处理工具
cloud.opencode.base.parallel.deadline - package cloud.opencode.base.parallel.deadline
 
cloud.opencode.base.parallel.exception - package cloud.opencode.base.parallel.exception
Exception Package - Parallel Execution Exceptions 异常包 - 并行执行异常
cloud.opencode.base.parallel.executor - package cloud.opencode.base.parallel.executor
Executor Package - Virtual Thread Executors 执行器包 - 虚拟线程执行器
cloud.opencode.base.parallel.pipeline - package cloud.opencode.base.parallel.pipeline
Pipeline Package - Async Pipeline and Functions 流水线包 - 异步流水线和函数
cloud.opencode.base.parallel.structured - package cloud.opencode.base.parallel.structured
Structured Package - Structured Concurrency (JDK 25 JEP 499/501) 结构化包 - 结构化并发 (JDK 25 JEP 499/501)
combine(AsyncPipeline, BiFunction) - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Combines with another pipeline.
combine(CompletableFuture, CompletableFuture, CompletableFuture, TriFunction) - Static method in class cloud.opencode.base.parallel.OpenParallel
Combines three futures with a combiner function.
combine(CompletableFuture, CompletableFuture, BiFunction) - Static method in class cloud.opencode.base.parallel.OpenParallel
Combines two futures with a combiner function.
completed(T) - Static method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Creates a pipeline with a completed value.
completedBatches() - Method in record class cloud.opencode.base.parallel.batch.BatchProcessor.BatchProgress
Returns the value of the completedBatches record component.
Core Classes | 核心类 - Section in package cloud.opencode.base.parallel
 
CpuBound - Interface in cloud.opencode.base.parallel.executor
CPU-Bound Marker Interface CPU 密集型标记接口
cpuPoolSize(int) - Method in class cloud.opencode.base.parallel.executor.HybridExecutor.Builder
Sets the CPU pool size (platform threads).
cpuThreadNamePrefix(String) - Method in class cloud.opencode.base.parallel.executor.HybridExecutor.Builder
Sets the CPU thread name prefix.
create() - Static method in class cloud.opencode.base.parallel.executor.HybridExecutor
Creates a hybrid executor with default settings.
create() - Static method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Creates a new virtual executor.
create(double) - Static method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Creates a rate limited executor with specified permits per second.
create(double, long) - Static method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Creates a rate limited executor with specified rate and burst capacity.
current() - Static method in class cloud.opencode.base.parallel.deadline.DeadlineContext
 

D

DeadlineContext - Class in cloud.opencode.base.parallel.deadline
Deadline Context — ScopedValue-based deadline propagation for virtual threads 截止时间上下文 — 基于 ScopedValue 的虚拟线程截止时间传播
defaultProcessor() - Static method in class cloud.opencode.base.parallel.batch.BatchProcessor
Creates a default batch processor.
defaults() - Static method in class cloud.opencode.base.parallel.executor.ExecutorConfig
Creates a default configuration.
delay(Duration, Supplier) - Static method in class cloud.opencode.base.parallel.OpenParallel
Delays execution.

E

equals(Object) - Method in record class cloud.opencode.base.parallel.batch.BatchProcessor.BatchProgress
Indicates whether some other object is "equal to" this one.
Example | 示例 - Section in package cloud.opencode.base.parallel
 
execute(Runnable) - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Executes a runnable, auto-selecting the pool based on type.
execute(Runnable) - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Submits a task using the underlying executor.
executeOnCpuPool(Runnable) - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Executes a runnable on the CPU (platform thread) pool.
executeOnIoPool(Runnable) - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Executes a runnable on the IO (virtual thread) pool.
executionFailed(String, Throwable) - Static method in exception class cloud.opencode.base.parallel.exception.OpenParallelException
Creates an execution failed exception.
executor(ExecutorService) - Method in class cloud.opencode.base.parallel.batch.BatchProcessor.Builder
Sets the executor.
executor(ExecutorService) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor.Builder
Sets a custom executor service.
ExecutorConfig - Class in cloud.opencode.base.parallel.executor
Executor Config - Executor Configuration 执行器配置 - 执行器配置
ExecutorConfig.Builder - Class in cloud.opencode.base.parallel.executor
Builder for ExecutorConfig.

F

failed(Throwable) - Static method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Creates a pipeline with a failed value.
filter(Predicate) - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Filters the value.

G

get() - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Gets the result, blocking if necessary.
get(Duration) - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Gets the result with timeout.
getAvailablePermits() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Gets the currently available permits.
getAvailablePermits() - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Gets the available permits (for limited executor).
getAverageWaitMillis() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Gets the average wait time in milliseconds.
getBatchSize() - Method in class cloud.opencode.base.parallel.batch.BatchProcessor
Gets the batch size.
getBurstCapacity() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Gets the burst capacity.
getCompletedCount() - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Gets the total number of completed tasks.
getCompletedCount() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Gets the number of completed tasks.
getCompletedCount() - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Gets the number of completed tasks.
getConfig() - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Gets the configuration.
getCpuSubmittedCount() - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Gets the number of tasks submitted to the CPU pool.
getExecutor() - Static method in class cloud.opencode.base.parallel.OpenParallel
Gets the shared virtual thread executor.
getFailedCount() - Method in exception class cloud.opencode.base.parallel.exception.OpenParallelException
Gets the number of failed tasks.
getFailedCount() - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Gets the total number of failed tasks.
getFailedCount() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Gets the number of failed tasks.
getFailedCount() - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Gets the number of failed tasks.
getIoSubmittedCount() - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Gets the number of tasks submitted to the IO pool.
getMaxConcurrency() - Method in class cloud.opencode.base.parallel.executor.ExecutorConfig
Gets the maximum concurrency.
getMaxPermits() - Method in class cloud.opencode.base.parallel.executor.TokenBucketRateLimiter
Returns the maximum bucket capacity (equal to permitsPerSecond rounded down, minimum 1).
getNamePrefix() - Method in class cloud.opencode.base.parallel.executor.ExecutorConfig
Gets the thread name prefix.
getOptional() - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Gets the result as Optional.
getOrDefault(T) - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Gets the result or default on error.
getOrNull(ScopedValue) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Gets a scoped value or null.
getParallelism() - Method in class cloud.opencode.base.parallel.batch.BatchProcessor
Gets the parallelism.
getPartition(List, int, int) - Static method in class cloud.opencode.base.parallel.batch.PartitionUtil
Gets a specific partition by index.
getPendingCount() - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Gets the number of pending tasks.
getPermitsPerSecond() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Gets the configured permits per second.
getPermitsPerSecond() - Method in class cloud.opencode.base.parallel.executor.TokenBucketRateLimiter
Returns the configured permits per second.
getRejectedCount() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Gets the number of rejected tasks (when using trySubmit).
getRequestId() - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Gets the current request ID.
getSubmittedCount() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Gets the number of submitted tasks.
getSubmittedCount() - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Gets the number of submitted tasks.
getSuccessCount() - Method in exception class cloud.opencode.base.parallel.exception.OpenParallelException
Gets the number of successful tasks.
getSuppressedExceptions() - Method in exception class cloud.opencode.base.parallel.exception.OpenParallelException
Gets the suppressed exceptions.
getTaskTimeout() - Method in class cloud.opencode.base.parallel.executor.ExecutorConfig
Gets the task timeout.
getTenantId() - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Gets the current tenant ID.
getTotalCount() - Method in exception class cloud.opencode.base.parallel.exception.OpenParallelException
Gets the total number of tasks.
getTotalWaitNanos() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Gets the total wait time in nanoseconds.
getTraceId() - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Gets the current trace ID.
getTraceIdOrDefault(String) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Gets the current trace ID or default.
getUncaughtExceptionHandler() - Method in class cloud.opencode.base.parallel.executor.ExecutorConfig
Gets the uncaught exception handler.
getUserId() - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Gets the current user ID.
getWaitedCount() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Gets the number of tasks that waited for a permit.

H

handle(BiFunction) - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Handles both success and error.
hashCode() - Method in record class cloud.opencode.base.parallel.batch.BatchProcessor.BatchProgress
Returns a hash code value for this object.
HybridExecutor - Class in cloud.opencode.base.parallel.executor
Hybrid Executor - Hybrid Thread Executor 混合执行器 - 混合线程执行器
HybridExecutor.Builder - Class in cloud.opencode.base.parallel.executor
Builder for HybridExecutor.

I

inheritThreadLocals(boolean) - Method in class cloud.opencode.base.parallel.executor.ExecutorConfig.Builder
Sets whether to inherit thread locals.
interrupted(InterruptedException) - Static method in exception class cloud.opencode.base.parallel.exception.OpenParallelException
Creates an interrupted exception.
invokeAll(Collection) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Submits multiple tasks and waits for all.
invokeAll(Collection) - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Submits multiple tasks and waits for all.
invokeAll(Collection, Duration) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Submits multiple tasks with timeout.
invokeAll(Collection, Duration) - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Submits multiple tasks with timeout.
invokeAll(Collection) - Static method in class cloud.opencode.base.parallel.OpenParallel
Invokes all suppliers in parallel and collects results.
invokeAll(Collection, Duration) - Static method in class cloud.opencode.base.parallel.OpenParallel
Invokes all suppliers in parallel with timeout.
invokeAll(Supplier...) - Static method in class cloud.opencode.base.parallel.OpenParallel
Invokes all suppliers in parallel and collects results.
invokeAllRateLimited(double, Supplier...) - Static method in class cloud.opencode.base.parallel.OpenParallel
Executes tasks with rate limiting.
invokeAny(Collection) - Static method in class cloud.opencode.base.parallel.OpenParallel
Invokes all and returns the first to complete.
invokeAny(Supplier...) - Static method in class cloud.opencode.base.parallel.OpenParallel
Invokes all and returns the first to complete.
ioThreadNamePrefix(String) - Method in class cloud.opencode.base.parallel.executor.HybridExecutor.Builder
Sets the IO thread name prefix.
isBound() - Static method in class cloud.opencode.base.parallel.deadline.DeadlineContext
 
isBound(ScopedValue) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Checks if a scoped value is bound.
isComplete() - Method in record class cloud.opencode.base.parallel.batch.BatchProcessor.BatchProgress
Checks if processing is complete.
isCompletedExceptionally() - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Checks if the pipeline completed exceptionally.
isDone() - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Checks if the pipeline is completed.
isExpired() - Static method in class cloud.opencode.base.parallel.deadline.DeadlineContext
 
isInheritThreadLocals() - Method in class cloud.opencode.base.parallel.executor.ExecutorConfig
Checks if thread locals should be inherited.
isShutdown() - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Checks if the executor is shut down.
isShutdown() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Checks if the executor is shutdown.
isShutdown() - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Checks if the executor is shutdown.
isTerminated() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Checks if the executor is terminated.
isTerminated() - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Checks if the executor is terminated.

L

lastBatchSize() - Method in record class cloud.opencode.base.parallel.batch.BatchProcessor.BatchProgress
Returns the value of the lastBatchSize record component.

M

maxConcurrency(int) - Method in class cloud.opencode.base.parallel.executor.ExecutorConfig.Builder
Sets the maximum concurrency.

N

namePrefix(String) - Method in class cloud.opencode.base.parallel.executor.ExecutorConfig.Builder
Sets the thread name prefix.
namePrefix(String) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor.Builder
Sets the thread name prefix (for default virtual thread executor).
newScopedValue() - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Creates a new scoped value.

O

of(double) - Static method in class cloud.opencode.base.parallel.executor.TokenBucketRateLimiter
Creates a rate limiter with the specified permits per second.
of(CompletableFuture) - Static method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Creates a pipeline from a CompletableFuture.
onError(Function) - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Handles errors with a recovery function.
onErrorAsync(Function) - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Handles errors with an async recovery function.
OpenParallel - Class in cloud.opencode.base.parallel
Open Parallel - Parallel Computing Utility Open 并行 - 并行计算工具
OpenParallelException - Exception Class in cloud.opencode.base.parallel.exception
Open Parallel Exception - Parallel Execution Exception Open 并行异常 - 并行执行异常
OpenParallelException(String) - Constructor for exception class cloud.opencode.base.parallel.exception.OpenParallelException
Constructs a new parallel exception with message.
OpenParallelException(String, Throwable) - Constructor for exception class cloud.opencode.base.parallel.exception.OpenParallelException
Constructs a new parallel exception with message and cause.
OpenParallelException(String, List, int, int) - Constructor for exception class cloud.opencode.base.parallel.exception.OpenParallelException
Constructs a new parallel exception with full details.

P

parallelism(int) - Method in class cloud.opencode.base.parallel.batch.BatchProcessor.Builder
Sets the parallelism.
parallelMap(List, Function) - Static method in class cloud.opencode.base.parallel.OpenParallel
Maps items in parallel using stream.
parallelMap(List, Function, int) - Static method in class cloud.opencode.base.parallel.OpenParallel
Maps items in parallel with concurrency limit.
parallelMap(List, Function, int, Duration) - Static method in class cloud.opencode.base.parallel.OpenParallel
Maps items in parallel with concurrency limit and timeout.
partialFailure(List, int) - Static method in exception class cloud.opencode.base.parallel.exception.OpenParallelException
Creates a partial failure exception.
partition(Collection, int) - Static method in class cloud.opencode.base.parallel.batch.PartitionUtil
Partitions a collection into smaller lists of specified size.
partition(List, int) - Static method in class cloud.opencode.base.parallel.batch.PartitionUtil
Partitions a list into smaller lists of specified size.
partitionCount(int, int) - Static method in class cloud.opencode.base.parallel.batch.PartitionUtil
Calculates the number of partitions.
partitionInto(List, int) - Static method in class cloud.opencode.base.parallel.batch.PartitionUtil
Partitions into a specified number of partitions.
partitionStream(List, int) - Static method in class cloud.opencode.base.parallel.batch.PartitionUtil
Creates a stream of partitions (lazy evaluation).
PartitionUtil - Class in cloud.opencode.base.parallel.batch
Partition Util - List Partition Utility 分区工具 - 列表分区工具
peek(Consumer) - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Peeks at the value without transforming it.
percentage() - Method in record class cloud.opencode.base.parallel.batch.BatchProcessor.BatchProgress
Gets the progress percentage.
permitsPerSecond(double) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor.Builder
Sets the permits per second.
pipeline(CompletableFuture) - Static method in class cloud.opencode.base.parallel.OpenParallel
Creates an async pipeline from existing future.
pipeline(Supplier) - Static method in class cloud.opencode.base.parallel.OpenParallel
Creates an async pipeline from initial supplier.
process(List, Consumer) - Method in class cloud.opencode.base.parallel.batch.BatchProcessor
Processes items in batches.
processAndCollect(List, Function) - Method in class cloud.opencode.base.parallel.batch.BatchProcessor
Processes items in batches with result collection.
processBatch(List, int, Consumer) - Static method in class cloud.opencode.base.parallel.OpenParallel
Processes items in batches.
processBatchAndCollect(List, int, Function) - Static method in class cloud.opencode.base.parallel.OpenParallel
Processes items in batches with result collection.
processWithProgress(List, Consumer, Consumer) - Method in class cloud.opencode.base.parallel.batch.BatchProcessor
Processes items in batches with progress callback.

R

rateLimited(double) - Static method in class cloud.opencode.base.parallel.OpenParallel
Creates a rate limited executor with specified permits per second.
rateLimited(double, long) - Static method in class cloud.opencode.base.parallel.OpenParallel
Creates a rate limited executor with specified rate and burst capacity.
RateLimitedExecutor - Class in cloud.opencode.base.parallel.executor
Rate Limited Executor - Token Bucket Rate Limiting Executor 限速执行器 - 令牌桶限速执行器
RateLimitedExecutor.Builder - Class in cloud.opencode.base.parallel.executor
Builder for RateLimitedExecutor.
remaining() - Static method in class cloud.opencode.base.parallel.deadline.DeadlineContext
 
REQUEST_ID - Static variable in class cloud.opencode.base.parallel.structured.ScopedContext
Request ID scoped value - 请求 ID 作用域值
run(String, String, Runnable) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Runs a task with trace ID and user ID bound.
run(String, String, String, Runnable) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Runs a task with trace ID, user ID, and tenant ID bound.
runAfter(AsyncPipeline) - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Runs after another pipeline completes.
runAll(Runnable...) - Static method in class cloud.opencode.base.parallel.OpenParallel
Runs all tasks in parallel, waiting for completion.
runAll(Collection) - Static method in class cloud.opencode.base.parallel.OpenParallel
Runs all tasks in parallel, waiting for completion.
runAll(Collection, Duration) - Static method in class cloud.opencode.base.parallel.OpenParallel
Runs all tasks in parallel with timeout.
runWith(ScopedValue, T, Runnable) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Runs a task with a custom scoped value bound.
runWithRequestId(String, Runnable) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Runs a task with request ID bound.
runWithTenantId(String, Runnable) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Runs a task with tenant ID bound.
runWithTraceId(String, Runnable) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Runs a task with trace ID bound.
runWithUserId(String, Runnable) - Static method in class cloud.opencode.base.parallel.structured.ScopedContext
Runs a task with user ID bound.

S

ScopedContext - Class in cloud.opencode.base.parallel.structured
Scoped Context - Scoped Values Context Management (JDK 25 JEP 501) 作用域上下文 - 作用域值上下文管理 (JDK 25 JEP 501)
shared() - Static method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Gets the shared virtual executor.
shutdown() - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Shuts down both pools gracefully.
shutdown() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Shuts down the executor.
shutdown() - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Shuts down the executor.
shutdownAndAwait(Duration) - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Shuts down and waits for termination of both pools.
shutdownAndAwait(Duration) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Shuts down and waits for termination.
shutdownAndAwait(Duration) - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Shuts down and waits for termination.
shutdownNow() - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Shuts down both pools immediately.
stopOnError(boolean) - Method in class cloud.opencode.base.parallel.batch.BatchProcessor.Builder
Sets whether to stop on error.
submit(Runnable) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Submits a runnable task, waiting for a permit if necessary.
submit(Runnable) - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Submits a runnable task.
submit(Runnable, Duration) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Submits a runnable task with timeout for acquiring permit.
submit(Callable) - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Submits a callable, auto-selecting the pool based on type.
submit(Callable) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Submits a callable task, waiting for a permit if necessary.
submit(Callable) - Method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Submits a callable task.
submit(Callable, Duration) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Submits a callable task with timeout for acquiring permit.
submitOnCpuPool(Callable) - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Submits a callable on the CPU (platform thread) pool.
submitOnIoPool(Callable) - Method in class cloud.opencode.base.parallel.executor.HybridExecutor
Submits a callable on the IO (virtual thread) pool.
Sub-packages | 子包 - Section in package cloud.opencode.base.parallel
 

T

taskTimeout(Duration) - Method in class cloud.opencode.base.parallel.executor.ExecutorConfig.Builder
Sets the task timeout.
TENANT_ID - Static variable in class cloud.opencode.base.parallel.structured.ScopedContext
Tenant ID scoped value - 租户 ID 作用域值
then(Function) - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Applies a transformation function.
thenAsync(Function) - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Applies an async transformation function.
timeout(Duration) - Method in class cloud.opencode.base.parallel.batch.BatchProcessor.Builder
Sets the timeout.
timeout(Duration) - Static method in exception class cloud.opencode.base.parallel.exception.OpenParallelException
Creates a timeout exception.
toFuture() - Method in class cloud.opencode.base.parallel.pipeline.AsyncPipeline
Gets the underlying CompletableFuture.
TokenBucketRateLimiter - Class in cloud.opencode.base.parallel.executor
Token Bucket Rate Limiter - Standalone non-blocking rate limiter.
toString() - Method in record class cloud.opencode.base.parallel.batch.BatchProcessor.BatchProgress
Returns a string representation of this record class.
toString() - Method in class cloud.opencode.base.parallel.executor.TokenBucketRateLimiter
 
totalBatches() - Method in record class cloud.opencode.base.parallel.batch.BatchProcessor.BatchProgress
Returns the value of the totalBatches record component.
TRACE_ID - Static variable in class cloud.opencode.base.parallel.structured.ScopedContext
Trace ID scoped value - 追踪 ID 作用域值
TriFunction<T1,T2,T3,R> - Interface in cloud.opencode.base.parallel.pipeline
Tri Function - Three-Argument Function Interface 三元函数 - 三参数函数接口
tryAcquire() - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Tries to acquire a permit without waiting.
tryAcquire() - Method in class cloud.opencode.base.parallel.executor.TokenBucketRateLimiter
Tries to acquire a single permit without blocking.
tryAcquire(int) - Method in class cloud.opencode.base.parallel.executor.TokenBucketRateLimiter
Tries to acquire the specified number of permits without blocking.
tryAcquire(Duration) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Tries to acquire a permit with timeout.
trySubmit(Runnable) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Tries to submit a runnable task without waiting.
trySubmit(Callable) - Method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Tries to submit a callable task without waiting.

U

uncaughtExceptionHandler(Thread.UncaughtExceptionHandler) - Method in class cloud.opencode.base.parallel.executor.ExecutorConfig.Builder
Sets the uncaught exception handler.
USER_ID - Static variable in class cloud.opencode.base.parallel.structured.ScopedContext
User ID scoped value - 用户 ID 作用域值

V

VirtualExecutor - Class in cloud.opencode.base.parallel.executor
Virtual Executor - Virtual Thread Executor 虚拟执行器 - 虚拟线程执行器

W

withConcurrency(int) - Static method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Creates a virtual executor with concurrency limit.
withConfig(ExecutorConfig) - Static method in class cloud.opencode.base.parallel.executor.VirtualExecutor
Creates a virtual executor with configuration.
withCpuPoolSize(int) - Static method in class cloud.opencode.base.parallel.executor.HybridExecutor
Creates a hybrid executor with the specified CPU pool size.
withDeadline(Instant, Runnable) - Static method in class cloud.opencode.base.parallel.deadline.DeadlineContext
 
withDeadline(Instant, Callable) - Static method in class cloud.opencode.base.parallel.deadline.DeadlineContext
 
withExecutor(ExecutorService, double, long) - Static method in class cloud.opencode.base.parallel.executor.RateLimitedExecutor
Creates a rate limited executor with custom executor service.
withTimeout(Duration, Runnable) - Static method in class cloud.opencode.base.parallel.deadline.DeadlineContext
 
withTimeout(Duration, Callable) - Static method in class cloud.opencode.base.parallel.deadline.DeadlineContext
 
A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form