apkfuckery/com.discord/smali/f/c/a/p0.smali
2020-05-11 21:22:21 +02:00

60 lines
1.8 KiB
Smali

.class public final Lf/c/a/p0;
.super Ljava/lang/Object;
.source "CustomScheduledExecutor.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lf/c/a/p0$c;
}
.end annotation
# instance fields
.field public a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
# direct methods
.method public constructor <init>(Ljava/lang/String;Z)V
.locals 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
const/4 v1, 0x1
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
new-instance v0, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
new-instance v2, Lf/c/a/p0$a;
invoke-direct {v2, p0, p1}, Lf/c/a/p0$a;-><init>(Lf/c/a/p0;Ljava/lang/String;)V
new-instance v3, Lf/c/a/p0$b;
invoke-direct {v3, p0, p1}, Lf/c/a/p0$b;-><init>(Lf/c/a/p0;Ljava/lang/String;)V
invoke-direct {v0, v1, v2, v3}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V
iput-object v0, p0, Lf/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
if-nez p2, :cond_0
iget-object p1, p0, Lf/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
const-wide/16 v2, 0xa
sget-object p2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {p1, v2, v3, p2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->setKeepAliveTime(JLjava/util/concurrent/TimeUnit;)V
iget-object p1, p0, Lf/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
invoke-virtual {p1, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V
:cond_0
return-void
.end method