2020-07-14 22:43:59 +00:00
|
|
|
.class public final Lj0/a/t1;
|
|
|
|
.super Lj0/a/u0;
|
2020-05-17 12:40:10 +00:00
|
|
|
.source "ThreadPoolDispatcher.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final e:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
|
|
|
|
.field public final f:Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
.field public final g:I
|
|
|
|
|
|
|
|
.field public final h:Ljava/lang/String;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(ILjava/lang/String;)V
|
|
|
|
.locals 0
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-direct {p0}, Lj0/a/u0;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput p1, p0, Lj0/a/t1;->g:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p2, p0, Lj0/a/t1;->h:Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p1, p0, Lj0/a/t1;->e:Ljava/util/concurrent/atomic/AtomicInteger;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget p1, p0, Lj0/a/t1;->g:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
new-instance p2, Lj0/a/t1$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-direct {p2, p0}, Lj0/a/t1$a;-><init>(Lj0/a/t1;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/util/concurrent/Executors;->newScheduledThreadPool(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "Executors.newScheduledTh\u2026.incrementAndGet())\n }"
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {p1, p2}, Li0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p1, p0, Lj0/a/t1;->f:Ljava/util/concurrent/Executor;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {p1}, Lj0/a/x1/d;->b(Ljava/util/concurrent/Executor;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-boolean p1, p0, Lj0/a/u0;->d:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public close()V
|
|
|
|
.locals 2
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lj0/a/t1;->f:Ljava/util/concurrent/Executor;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/concurrent/ExecutorService;->shutdown()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v0, Lkotlin/TypeCastException;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.util.concurrent.ExecutorService"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-string v0, "ThreadPoolDispatcher["
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget v1, p0, Lj0/a/t1;->g:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", "
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v1, p0, Lj0/a/t1;->h:Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const/16 v1, 0x5d
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|