h.smali

.class public Lk2/h;
.super Ljava/lang/Object;
.source "RetryManager.java"


# instance fields
.field public a:Z

.field public b:Z

.field public c:Lj2/d;

.field public d:Lj2/b;

.field public final e:Ljava/util/concurrent/ScheduledExecutorService;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method public constructor <init>(Lj2/d;Lj2/b;Ljava/util/concurrent/ScheduledExecutorService;)V
    .registers 4

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lk2/h;->c:Lj2/d;

    iput-object p2, p0, Lk2/h;->d:Lj2/b;

    iput-object p3, p0, Lk2/h;->e:Ljava/util/concurrent/ScheduledExecutorService;

    const/4 p1, 0x0

    iput-boolean p1, p0, Lk2/h;->b:Z

    iput-boolean p1, p0, Lk2/h;->a:Z

    return-void
.end method

.method public static synthetic a(Lk2/h;)Z
    .registers 1

    iget-boolean p0, p0, Lk2/h;->a:Z

    return p0
.end method

.method public static synthetic a(Lk2/h;Z)Z
    .registers 2

    iput-boolean p1, p0, Lk2/h;->b:Z

    return p1
.end method

.method public static synthetic b(Lk2/h;)Lj2/d;
    .registers 1

    iget-object p0, p0, Lk2/h;->c:Lj2/d;

    return-object p0
.end method


# virtual methods
.method public a(Lcom/garena/tcpcore/exception/TCPError;)V
    .registers 6

    iget-boolean v0, p0, Lk2/h;->a:Z

    xor-int/lit8 v1, v0, 0x1

    iput-boolean v1, p0, Lk2/h;->b:Z

    if-nez v0, :cond_27

    iget-object v0, p0, Lk2/h;->d:Lj2/b;

    invoke-interface {v0, p1}, Lj2/b;->a(Lcom/garena/tcpcore/exception/TCPError;)Lj2/g;

    move-result-object p1

    invoke-virtual {p1}, Lj2/g;->a()Z

    move-result v0

    iput-boolean v0, p0, Lk2/h;->b:Z

    if-eqz v0, :cond_27

    iget-object v0, p0, Lk2/h;->e:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v1, Lk2/h$a;

    invoke-direct {v1, p0}, Lk2/h$a;-><init>(Lk2/h;)V

    invoke-virtual {p1}, Lj2/g;->b()I

    move-result p1

    int-to-long v2, p1

    sget-object p1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v0, v1, v2, v3, p1}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    :cond_27
    return-void
.end method

.method public a(Z)V
    .registers 2

    iput-boolean p1, p0, Lk2/h;->a:Z

    const/4 p1, 0x0

    iput-boolean p1, p0, Lk2/h;->b:Z

    return-void
.end method