.class final Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate; .super Lcom/google/common/util/concurrent/AbstractService; .source "AbstractScheduledService.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/util/concurrent/AbstractScheduledService; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x11 name = "ServiceDelegate" .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate$Task; } .end annotation # instance fields .field private volatile executorService:Ljava/util/concurrent/ScheduledExecutorService; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end field .field private final lock:Ljava/util/concurrent/locks/ReentrantLock; .field private volatile runningTask:Lcom/google/common/util/concurrent/AbstractScheduledService$Cancellable; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end field .field private final task:Ljava/lang/Runnable; .field public final synthetic this$0:Lcom/google/common/util/concurrent/AbstractScheduledService; # direct methods .method private constructor (Lcom/google/common/util/concurrent/AbstractScheduledService;)V .locals 0 .line 1 iput-object p1, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->this$0:Lcom/google/common/util/concurrent/AbstractScheduledService; invoke-direct {p0}, Lcom/google/common/util/concurrent/AbstractService;->()V .line 2 new-instance p1, Ljava/util/concurrent/locks/ReentrantLock; invoke-direct {p1}, Ljava/util/concurrent/locks/ReentrantLock;->()V iput-object p1, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->lock:Ljava/util/concurrent/locks/ReentrantLock; .line 3 new-instance p1, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate$Task; invoke-direct {p1, p0}, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate$Task;->(Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;)V iput-object p1, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->task:Ljava/lang/Runnable; return-void .end method .method public synthetic constructor (Lcom/google/common/util/concurrent/AbstractScheduledService;Lcom/google/common/util/concurrent/AbstractScheduledService$1;)V .locals 0 .line 4 invoke-direct {p0, p1}, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->(Lcom/google/common/util/concurrent/AbstractScheduledService;)V return-void .end method .method public static synthetic access$200(Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;)Ljava/util/concurrent/locks/ReentrantLock; .locals 0 .line 1 iget-object p0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->lock:Ljava/util/concurrent/locks/ReentrantLock; return-object p0 .end method .method public static synthetic access$300(Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;)Lcom/google/common/util/concurrent/AbstractScheduledService$Cancellable; .locals 0 .line 1 iget-object p0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->runningTask:Lcom/google/common/util/concurrent/AbstractScheduledService$Cancellable; return-object p0 .end method .method public static synthetic access$302(Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;Lcom/google/common/util/concurrent/AbstractScheduledService$Cancellable;)Lcom/google/common/util/concurrent/AbstractScheduledService$Cancellable; .locals 0 .line 1 iput-object p1, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->runningTask:Lcom/google/common/util/concurrent/AbstractScheduledService$Cancellable; return-object p1 .end method .method public static synthetic access$600(Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;)Ljava/util/concurrent/ScheduledExecutorService; .locals 0 .line 1 iget-object p0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->executorService:Ljava/util/concurrent/ScheduledExecutorService; return-object p0 .end method .method public static synthetic access$700(Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;)Ljava/lang/Runnable; .locals 0 .line 1 iget-object p0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->task:Ljava/lang/Runnable; return-object p0 .end method # virtual methods .method public final doStart()V .locals 2 .line 1 iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->this$0:Lcom/google/common/util/concurrent/AbstractScheduledService; .line 2 invoke-virtual {v0}, Lcom/google/common/util/concurrent/AbstractScheduledService;->executor()Ljava/util/concurrent/ScheduledExecutorService; move-result-object v0 new-instance v1, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate$1; invoke-direct {v1, p0}, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate$1;->(Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;)V .line 3 invoke-static {v0, v1}, Lcom/google/common/util/concurrent/MoreExecutors;->renamingDecorator(Ljava/util/concurrent/ScheduledExecutorService;Lcom/google/common/base/Supplier;)Ljava/util/concurrent/ScheduledExecutorService; move-result-object v0 iput-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->executorService:Ljava/util/concurrent/ScheduledExecutorService; .line 4 iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->executorService:Ljava/util/concurrent/ScheduledExecutorService; new-instance v1, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate$2; invoke-direct {v1, p0}, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate$2;->(Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;)V invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V return-void .end method .method public final doStop()V .locals 2 .line 1 iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->runningTask:Lcom/google/common/util/concurrent/AbstractScheduledService$Cancellable; invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object; .line 2 iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->executorService:Ljava/util/concurrent/ScheduledExecutorService; invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object; .line 3 iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->runningTask:Lcom/google/common/util/concurrent/AbstractScheduledService$Cancellable; const/4 v1, 0x0 invoke-interface {v0, v1}, Lcom/google/common/util/concurrent/AbstractScheduledService$Cancellable;->cancel(Z)V .line 4 iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->executorService:Ljava/util/concurrent/ScheduledExecutorService; new-instance v1, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate$3; invoke-direct {v1, p0}, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate$3;->(Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;)V invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V return-void .end method .method public toString()Ljava/lang/String; .locals 1 .line 1 iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractScheduledService$ServiceDelegate;->this$0:Lcom/google/common/util/concurrent/AbstractScheduledService; invoke-virtual {v0}, Lcom/google/common/util/concurrent/AbstractScheduledService;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method