public final class RiotApiExecutors
extends java.lang.Object
Executor instances. It is
generally preferred to use newFixedThreadPool(RateRule...)
for an optimal number of threads.| Modifier and Type | Method and Description |
|---|---|
static java.util.concurrent.Executor |
newCachedThreadPool() |
static java.util.concurrent.Executor |
newCachedThreadPool(java.util.concurrent.ThreadFactory factory) |
static java.util.concurrent.Executor |
newFixedThreadPool(RateRule... rules)
A new
Executor fixed size thread pool optimized to
work with the specified rates. |
static java.util.concurrent.Executor |
newFixedThreadPool(java.util.concurrent.ThreadFactory factory,
RateRule... rules)
A new
Executor fixed size thread pool optimized to
work with the specified rates. |
public static java.util.concurrent.Executor newFixedThreadPool(RateRule... rules)
Executor fixed size thread pool optimized to
work with the specified rates.rules - RateRules to conform withpublic static java.util.concurrent.Executor newFixedThreadPool(java.util.concurrent.ThreadFactory factory,
RateRule... rules)
Executor fixed size thread pool optimized to
work with the specified rates.factory - ThreadFactory to userules - RateRules to conform withpublic static java.util.concurrent.Executor newCachedThreadPool()
Executors.newCachedThreadPool()public static java.util.concurrent.Executor newCachedThreadPool(java.util.concurrent.ThreadFactory factory)
factory - ThreadFactory to useExecutors.newCachedThreadPool(ThreadFactory)