tmap/smali_classes3/com/google/common/util/concurrent/AbstractScheduledService.smali
2022-06-10 21:38:30 +09:00

338 lines
11 KiB
Smali

.class public abstract Lcom/google/common/util/concurrent/AbstractScheduledService;
.super Ljava/lang/Object;
.source "AbstractScheduledService.java"
# interfaces
.implements Lcom/google/common/util/concurrent/Service;
# annotations
.annotation build Lcom/google/common/annotations/GwtIncompatible;
.end annotation
.annotation runtime Lcom/google/common/util/concurrent/ElementTypesAreNonnullByDefault;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/util/concurrent/AbstractScheduledService$CustomScheduler;,
Lcom/google/common/util/concurrent/AbstractScheduledService$FutureAsCancellable;,
Lcom/google/common/util/concurrent/AbstractScheduledService$Cancellable;,
Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;,
Lcom/google/common/util/concurrent/AbstractScheduledService$Scheduler;
}
.end annotation
# static fields
.field private static final logger:Ljava/util/logging/Logger;
# instance fields
.field private final delegate:Lcom/google/common/util/concurrent/AbstractService;
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
const-class v0, Lcom/google/common/util/concurrent/AbstractScheduledService;
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
move-result-object v0
sput-object v0, Lcom/google/common/util/concurrent/AbstractScheduledService;->logger:Ljava/util/logging/Logger;
return-void
.end method
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;-><init>(Lcom/google/common/util/concurrent/AbstractScheduledService;Lcom/google/common/util/concurrent/AbstractScheduledService$1;)V
iput-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService;->delegate:Lcom/google/common/util/concurrent/AbstractService;
return-void
.end method
.method public static synthetic access$400()Ljava/util/logging/Logger;
.locals 1
.line 1
sget-object v0, Lcom/google/common/util/concurrent/AbstractScheduledService;->logger:Ljava/util/logging/Logger;
return-object v0
.end method
.method public static synthetic access$500(Lcom/google/common/util/concurrent/AbstractScheduledService;)Lcom/google/common/util/concurrent/AbstractService;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService;->delegate:Lcom/google/common/util/concurrent/AbstractService;
return-object p0
.end method
# virtual methods
.method public final addListener(Lcom/google/common/util/concurrent/Service$Listener;Ljava/util/concurrent/Executor;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService;->delegate:Lcom/google/common/util/concurrent/AbstractService;
invoke-virtual {v0, p1, p2}, Lcom/google/common/util/concurrent/AbstractService;->addListener(Lcom/google/common/util/concurrent/Service$Listener;Ljava/util/concurrent/Executor;)V
return-void
.end method
.method public final awaitRunning()V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService;->delegate:Lcom/google/common/util/concurrent/AbstractService;
invoke-virtual {v0}, Lcom/google/common/util/concurrent/AbstractService;->awaitRunning()V
return-void
.end method
.method public final awaitRunning(JLjava/util/concurrent/TimeUnit;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/util/concurrent/TimeoutException;
}
.end annotation
.line 2
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService;->delegate:Lcom/google/common/util/concurrent/AbstractService;
invoke-virtual {v0, p1, p2, p3}, Lcom/google/common/util/concurrent/AbstractService;->awaitRunning(JLjava/util/concurrent/TimeUnit;)V
return-void
.end method
.method public final awaitTerminated()V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService;->delegate:Lcom/google/common/util/concurrent/AbstractService;
invoke-virtual {v0}, Lcom/google/common/util/concurrent/AbstractService;->awaitTerminated()V
return-void
.end method
.method public final awaitTerminated(JLjava/util/concurrent/TimeUnit;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/util/concurrent/TimeoutException;
}
.end annotation
.line 2
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService;->delegate:Lcom/google/common/util/concurrent/AbstractService;
invoke-virtual {v0, p1, p2, p3}, Lcom/google/common/util/concurrent/AbstractService;->awaitTerminated(JLjava/util/concurrent/TimeUnit;)V
return-void
.end method
.method public executor()Ljava/util/concurrent/ScheduledExecutorService;
.locals 3
.line 1
new-instance v0, Lcom/google/common/util/concurrent/AbstractScheduledService$1ThreadFactoryImpl;
invoke-direct {v0, p0}, Lcom/google/common/util/concurrent/AbstractScheduledService$1ThreadFactoryImpl;-><init>(Lcom/google/common/util/concurrent/AbstractScheduledService;)V
.line 2
invoke-static {v0}, Ljava/util/concurrent/Executors;->newSingleThreadScheduledExecutor(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
move-result-object v0
.line 3
new-instance v1, Lcom/google/common/util/concurrent/AbstractScheduledService$1;
invoke-direct {v1, p0, v0}, Lcom/google/common/util/concurrent/AbstractScheduledService$1;-><init>(Lcom/google/common/util/concurrent/AbstractScheduledService;Ljava/util/concurrent/ScheduledExecutorService;)V
.line 4
invoke-static {}, Lcom/google/common/util/concurrent/MoreExecutors;->directExecutor()Ljava/util/concurrent/Executor;
move-result-object v2
.line 5
invoke-virtual {p0, v1, v2}, Lcom/google/common/util/concurrent/AbstractScheduledService;->addListener(Lcom/google/common/util/concurrent/Service$Listener;Ljava/util/concurrent/Executor;)V
return-object v0
.end method
.method public final failureCause()Ljava/lang/Throwable;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService;->delegate:Lcom/google/common/util/concurrent/AbstractService;
invoke-virtual {v0}, Lcom/google/common/util/concurrent/AbstractService;->failureCause()Ljava/lang/Throwable;
move-result-object v0
return-object v0
.end method
.method public final isRunning()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService;->delegate:Lcom/google/common/util/concurrent/AbstractService;
invoke-virtual {v0}, Lcom/google/common/util/concurrent/AbstractService;->isRunning()Z
move-result v0
return v0
.end method
.method public abstract runOneIteration()V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.end method
.method public abstract scheduler()Lcom/google/common/util/concurrent/AbstractScheduledService$Scheduler;
.end method
.method public serviceName()Ljava/lang/String;
.locals 1
.line 1
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public shutDown()V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
return-void
.end method
.method public final startAsync()Lcom/google/common/util/concurrent/Service;
.locals 1
.annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService;->delegate:Lcom/google/common/util/concurrent/AbstractService;
invoke-virtual {v0}, Lcom/google/common/util/concurrent/AbstractService;->startAsync()Lcom/google/common/util/concurrent/Service;
return-object p0
.end method
.method public startUp()V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
return-void
.end method
.method public final state()Lcom/google/common/util/concurrent/Service$State;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService;->delegate:Lcom/google/common/util/concurrent/AbstractService;
invoke-virtual {v0}, Lcom/google/common/util/concurrent/AbstractService;->state()Lcom/google/common/util/concurrent/Service$State;
move-result-object v0
return-object v0
.end method
.method public final stopAsync()Lcom/google/common/util/concurrent/Service;
.locals 1
.annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService;->delegate:Lcom/google/common/util/concurrent/AbstractService;
invoke-virtual {v0}, Lcom/google/common/util/concurrent/AbstractService;->stopAsync()Lcom/google/common/util/concurrent/Service;
return-object p0
.end method
.method public toString()Ljava/lang/String;
.locals 5
.line 1
invoke-virtual {p0}, Lcom/google/common/util/concurrent/AbstractScheduledService;->serviceName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p0}, Lcom/google/common/util/concurrent/AbstractScheduledService;->state()Lcom/google/common/util/concurrent/Service$State;
move-result-object v1
invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
const/4 v2, 0x3
invoke-static {v0, v2}, Lcom/android/billingclient/api/d;->a(Ljava/lang/String;I)I
move-result v2
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v3
add-int/2addr v3, v2
const-string v2, " ["
const-string v4, "]"
invoke-static {v3, v0, v2, v1, v4}, Lcom/android/billingclient/api/f;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method