public final class Executors extends Object
| Modifier and Type | Method and Description |
|---|---|
static Executor |
limited(Executor delegate,
int limit)
Executor that limits the number submitted jobs
to a fixed upper bound, by blocking the producer thread on submission. |
static ExecutorSubmitter |
submitter(Executor delegate)
Executor that limits the number submitted jobs
to a fixed upper bound, by blocking the producer thread on submission. |
public static Executor limited(Executor delegate, int limit)
Executor that limits the number submitted jobs
to a fixed upper bound, by blocking the producer thread on submission.public static ExecutorSubmitter submitter(Executor delegate)
Executor that limits the number submitted jobs
to a fixed upper bound, by blocking the producer thread on submission.delegate - a Executor.ExecutorSubmitter.for implementation details.Copyright © 2024 Atlassian. All rights reserved.