package f.a.w.g;

import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicLong;

/* JADX INFO: compiled from: RxThreadFactory.java */
/* JADX INFO: loaded from: classes.dex */
public final class i extends AtomicLong implements ThreadFactory {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final String f4004b;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final int f4005e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final boolean f4006f;

    /* JADX INFO: compiled from: RxThreadFactory.java */
    public static final class a extends Thread {
        public a(Runnable runnable, String str) {
            super(runnable, str);
        }
    }

    public i(String str) {
        this.f4004b = str;
        this.f4005e = 5;
        this.f4006f = false;
    }

    @Override // java.util.concurrent.ThreadFactory
    public Thread newThread(Runnable runnable) {
        String str = this.f4004b + '-' + incrementAndGet();
        Thread aVar = this.f4006f ? new a(runnable, str) : new Thread(runnable, str);
        aVar.setPriority(this.f4005e);
        aVar.setDaemon(true);
        return aVar;
    }

    @Override // java.util.concurrent.atomic.AtomicLong
    public String toString() {
        return d.b.a.a.a.v(d.b.a.a.a.B("RxThreadFactory["), this.f4004b, "]");
    }

    public i(String str, int i2) {
        this.f4004b = str;
        this.f4005e = i2;
        this.f4006f = false;
    }

    public i(String str, int i2, boolean z) {
        this.f4004b = str;
        this.f4005e = i2;
        this.f4006f = z;
    }
}
