.class public final Lz/a/u1; .super Lz/a/v0; .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 (ILjava/lang/String;)V .locals 0 if-eqz p2, :cond_0 invoke-direct {p0}, Lz/a/v0;->()V iput p1, p0, Lz/a/u1;->g:I iput-object p2, p0, Lz/a/u1;->h:Ljava/lang/String; new-instance p1, Ljava/util/concurrent/atomic/AtomicInteger; invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->()V iput-object p1, p0, Lz/a/u1;->e:Ljava/util/concurrent/atomic/AtomicInteger; iget p1, p0, Lz/a/u1;->g:I new-instance p2, Lz/a/u1$a; invoke-direct {p2, p0}, Lz/a/u1$a;->(Lz/a/u1;)V 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 }" invoke-static {p1, p2}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V iput-object p1, p0, Lz/a/u1;->f:Ljava/util/concurrent/Executor; iget-object p1, p0, Lz/a/u1;->f:Ljava/util/concurrent/Executor; invoke-static {p1}, Lz/a/a2/d;->a(Ljava/util/concurrent/Executor;)Z move-result p1 iput-boolean p1, p0, Lz/a/v0;->d:Z return-void :cond_0 const-string p1, "name" invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method public static final synthetic a(Lz/a/u1;)Ljava/lang/String; .locals 0 iget-object p0, p0, Lz/a/u1;->h:Ljava/lang/String; return-object p0 .end method # virtual methods .method public close()V .locals 2 iget-object v0, p0, Lz/a/u1;->f:Ljava/util/concurrent/Executor; 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 new-instance v0, Ly/l; const-string v1, "null cannot be cast to non-null type java.util.concurrent.ExecutorService" invoke-direct {v0, v1}, Ly/l;->(Ljava/lang/String;)V throw v0 .end method .method public toString()Ljava/lang/String; .locals 2 const-string v0, "ThreadPoolDispatcher[" invoke-static {v0}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v1, p0, Lz/a/u1;->g:I 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; iget-object v1, p0, Lz/a/u1;->h:Ljava/lang/String; 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