58 lines
1.7 KiB
Smali
58 lines
1.7 KiB
Smali
.class public final Lf/c/a/l0;
|
|
.super Ljava/lang/Object;
|
|
.source "CustomScheduledExecutor.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lf/c/a/l0$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/l0$a;
|
|
|
|
invoke-direct {v2, p0, p1}, Lf/c/a/l0$a;-><init>(Lf/c/a/l0;Ljava/lang/String;)V
|
|
|
|
new-instance v3, Lf/c/a/l0$b;
|
|
|
|
invoke-direct {v3, p0, p1}, Lf/c/a/l0$b;-><init>(Lf/c/a/l0;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/l0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
const-wide/16 p1, 0xa
|
|
|
|
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v0, p1, p2, v2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->setKeepAliveTime(JLjava/util/concurrent/TimeUnit;)V
|
|
|
|
iget-object p1, p0, Lf/c/a/l0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
|
|
|
|
invoke-virtual {p1, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|