apkfuckery/com.discord/smali/e/c/a/p0.smali
2020-04-27 22:53:11 +02:00

60 lines
1.8 KiB
Smali

.class public final Le/c/a/p0;
.super Ljava/lang/Object;
.source "CustomScheduledExecutor.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Le/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, Le/c/a/p0$a;
invoke-direct {v2, p0, p1}, Le/c/a/p0$a;-><init>(Le/c/a/p0;Ljava/lang/String;)V
new-instance v3, Le/c/a/p0$b;
invoke-direct {v3, p0, p1}, Le/c/a/p0$b;-><init>(Le/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, Le/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
if-nez p2, :cond_0
iget-object p1, p0, Le/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, Le/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