apkfuckery/com.discord/smali/e/c/a/p0.smali

61 lines
1.8 KiB
Smali
Raw Normal View History

2020-04-27 20:53:11 +00:00
.class public final Le/c/a/p0;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "CustomScheduledExecutor.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-04-27 20:53:11 +00:00
Le/c/a/p0$c;
2019-12-06 03:29:40 +00:00
}
.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;
2020-04-27 20:53:11 +00:00
new-instance v2, Le/c/a/p0$a;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-direct {v2, p0, p1}, Le/c/a/p0$a;-><init>(Le/c/a/p0;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
new-instance v3, Le/c/a/p0$b;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-direct {v3, p0, p1}, Le/c/a/p0$b;-><init>(Le/c/a/p0;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
invoke-direct {v0, v1, v2, v3}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V
2020-04-27 20:53:11 +00:00
iput-object v0, p0, Le/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-12-06 03:29:40 +00:00
if-nez p2, :cond_0
2020-04-27 20:53:11 +00:00
iget-object p1, p0, Le/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-12-06 03:29:40 +00:00
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
2020-04-27 20:53:11 +00:00
iget-object p1, p0, Le/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V
:cond_0
return-void
.end method