package com.bytedance.sdk.component.wu.ro;

/* JADX INFO: loaded from: classes.dex */
public abstract class lb implements Comparable<lb>, Runnable {
    public static final int EIGHTH_PRIORITY = 8;
    public static final int FIFTH_PRIORITY = 5;
    public static final int FOURTH_PRIORITY = 4;
    public static final int MAX_PRIORITY = 10;
    public static final int MIN_PRIORITY = 1;
    public static final int NINTH_PRIORITY = 9;
    public static final int SECOND_PRIORITY = 2;
    public static final int SEVENTH_PRIORITY = 7;
    public static final int SIXTH_PRIORITY = 6;
    public static final int THIRD_PRIORITY = 3;
    private long ajl;
    private int fm;
    private long jnr;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    private Runnable f6708lb;
    private String ro;
    private long yz;

    public lb(String str) {
        this.fm = 5;
        this.ro = str;
    }

    public long getAfterTimestamp() {
        return this.ajl;
    }

    public long getBeforeTimestamp() {
        return this.jnr;
    }

    public String getName() {
        return this.ro;
    }

    public int getPriority() {
        return this.fm;
    }

    public long getRunTime() {
        return this.ajl - this.jnr;
    }

    public long getSubmitTimestamp() {
        return this.yz;
    }

    public Runnable getTarget() {
        return this.f6708lb;
    }

    public long getWaitTime() {
        return this.jnr - this.yz;
    }

    public void setAfterTimestamp(long j10) {
        this.ajl = j10;
    }

    public void setBeforeTimestamp(long j10) {
        this.jnr = j10;
    }

    public void setPriority(int i10) {
        this.fm = i10;
    }

    public void setSubmitTimestamp(long j10) {
        this.yz = j10;
    }

    public void setTarget(Runnable runnable) {
        this.f6708lb = runnable;
    }

    public lb(String str, int i10) {
        this.fm = i10;
        this.ro = str;
    }

    @Override // java.lang.Comparable
    public int compareTo(lb lbVar) {
        if (getPriority() < lbVar.getPriority()) {
            return 1;
        }
        return getPriority() >= lbVar.getPriority() ? -1 : 0;
    }

    public lb(int i10, String str, Runnable runnable) {
        this.fm = i10;
        this.ro = str;
        this.f6708lb = runnable;
    }

    public lb(String str, Runnable runnable) {
        this.fm = 5;
        this.ro = str;
        this.f6708lb = runnable;
    }
}
