public final class ParallelScheduler extends Scheduler
Scheduler.Worker
Constructor and Description |
---|
ParallelScheduler() |
ParallelScheduler(int parallelism) |
ParallelScheduler(int parallelism,
boolean tracking) |
ParallelScheduler(int parallelism,
boolean tracking,
int priority) |
ParallelScheduler(int parallelism,
boolean tracking,
int priority,
String threadNamePrefix) |
ParallelScheduler(int parallelism,
ThreadFactory factory) |
ParallelScheduler(int parallelism,
ThreadFactory factory,
boolean tracking) |
ParallelScheduler(String threadNamePrefix) |
Modifier and Type | Method and Description |
---|---|
Scheduler.Worker |
createWorker() |
Disposable |
scheduleDirect(Runnable run) |
Disposable |
scheduleDirect(Runnable run,
long delay,
TimeUnit unit) |
Disposable |
schedulePeriodicallyDirect(Runnable run,
long initialDelay,
long period,
TimeUnit unit) |
void |
shutdown() |
void |
start() |
clockDriftTolerance, now, when
public ParallelScheduler()
public ParallelScheduler(String threadNamePrefix)
public ParallelScheduler(int parallelism)
public ParallelScheduler(int parallelism, boolean tracking)
public ParallelScheduler(int parallelism, boolean tracking, int priority)
public ParallelScheduler(int parallelism, boolean tracking, int priority, String threadNamePrefix)
public ParallelScheduler(int parallelism, ThreadFactory factory)
public ParallelScheduler(int parallelism, ThreadFactory factory, boolean tracking)
public Scheduler.Worker createWorker()
createWorker
in class Scheduler
public Disposable scheduleDirect(Runnable run)
scheduleDirect
in class Scheduler
public Disposable scheduleDirect(Runnable run, long delay, TimeUnit unit)
scheduleDirect
in class Scheduler
public Disposable schedulePeriodicallyDirect(Runnable run, long initialDelay, long period, TimeUnit unit)
schedulePeriodicallyDirect
in class Scheduler