package p138.p176.p291.p296.p297.p299;

import java.util.Locale;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;
import p138.p176.p291.p296.p297.C5608;

/* JADX INFO: renamed from: ދ.ހ.ށ.ބ.ށ.އ.ޱ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C5684 extends AbstractRunnableC5624 {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final /* synthetic */ String f16272;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final /* synthetic */ ExecutorService f16273;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final /* synthetic */ long f16274;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final /* synthetic */ TimeUnit f16275;

    public C5684(String str, ExecutorService executorService, long j, TimeUnit timeUnit) {
        this.f16272 = str;
        this.f16273 = executorService;
        this.f16274 = j;
        this.f16275 = timeUnit;
    }

    @Override // p138.p176.p291.p296.p297.p299.AbstractRunnableC5624
    /* JADX INFO: renamed from: ֏ */
    public void mo8985() {
        try {
            C5608.f16066.m8972("Executing shutdown hook for " + this.f16272);
            this.f16273.shutdown();
            if (this.f16273.awaitTermination(this.f16274, this.f16275)) {
                return;
            }
            C5608.f16066.m8972(this.f16272 + " did not shut down in the allocated time. Requesting immediate shutdown.");
            this.f16273.shutdownNow();
        } catch (InterruptedException unused) {
            C5608.f16066.m8972(String.format(Locale.US, "Interrupted while waiting for %s to shut down. Requesting immediate shutdown.", this.f16272));
            this.f16273.shutdownNow();
        }
    }
}
