Java 类io.reactivex.internal.schedulers.RxThreadFactory 实例源码

项目:RxJava2Extensions    文件:ParallelSchedulerTest.java   
@Test
public void constructors() {
    startStop(new ParallelScheduler());
    startStop(new ParallelScheduler(1));
    startStop(new ParallelScheduler(1, new RxThreadFactory("Test")));
    startStop(new ParallelScheduler("Test"));
}
项目:akarnokd-misc    文件:WeakParallelScheduler.java   
public WeakParallelScheduler(int parallelism) {
    ExecutorService[] execs = new ExecutorService[parallelism];

    for (int i = 0; i < parallelism; i++) {
        execs[i] = Executors.newSingleThreadExecutor(new RxThreadFactory("RxWeakParallelScheduler"));
    }

    executors = execs;
}
项目:RxJava2Extensions    文件:ParallelScheduler.java   
public ParallelScheduler(String threadNamePrefix) {
    this(Runtime.getRuntime().availableProcessors(), new RxThreadFactory(threadNamePrefix));
}
项目:RxJava2Extensions    文件:ParallelScheduler.java   
public ParallelScheduler(int parallelism, boolean tracking, int priority, String threadNamePrefix) {
    this(parallelism, new RxThreadFactory(threadNamePrefix, checkPriority(priority)), tracking);
}