.class final Lokhttp3/internal/http2/Ping; .super Ljava/lang/Object; .source "Ping.java" # instance fields .field private final a:Ljava/util/concurrent/CountDownLatch; .field private b:J .field private c:J # direct methods .method constructor ()V .locals 2 .line 29 invoke-direct {p0}, Ljava/lang/Object;->()V .line 25 new-instance v0, Ljava/util/concurrent/CountDownLatch; const/4 v1, 0x1 invoke-direct {v0, v1}, Ljava/util/concurrent/CountDownLatch;->(I)V iput-object v0, p0, Lokhttp3/internal/http2/Ping;->a:Ljava/util/concurrent/CountDownLatch; const-wide/16 v0, -0x1 .line 26 iput-wide v0, p0, Lokhttp3/internal/http2/Ping;->b:J .line 27 iput-wide v0, p0, Lokhttp3/internal/http2/Ping;->c:J return-void .end method # virtual methods .method a()V .locals 5 .line 33 iget-wide v0, p0, Lokhttp3/internal/http2/Ping;->b:J const-wide/16 v2, -0x1 cmp-long v4, v0, v2 if-nez v4, :cond_0 .line 34 invoke-static {}, Ljava/lang/System;->nanoTime()J move-result-wide v0 iput-wide v0, p0, Lokhttp3/internal/http2/Ping;->b:J return-void .line 33 :cond_0 new-instance v0, Ljava/lang/IllegalStateException; invoke-direct {v0}, Ljava/lang/IllegalStateException;->()V throw v0 .end method .method b()V .locals 5 .line 38 iget-wide v0, p0, Lokhttp3/internal/http2/Ping;->c:J const-wide/16 v2, -0x1 cmp-long v4, v0, v2 if-nez v4, :cond_0 iget-wide v0, p0, Lokhttp3/internal/http2/Ping;->b:J cmp-long v4, v0, v2 if-eqz v4, :cond_0 .line 39 invoke-static {}, Ljava/lang/System;->nanoTime()J move-result-wide v0 iput-wide v0, p0, Lokhttp3/internal/http2/Ping;->c:J .line 40 iget-object v0, p0, Lokhttp3/internal/http2/Ping;->a:Ljava/util/concurrent/CountDownLatch; invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V return-void .line 38 :cond_0 new-instance v0, Ljava/lang/IllegalStateException; invoke-direct {v0}, Ljava/lang/IllegalStateException;->()V throw v0 .end method .method c()V .locals 5 .line 44 iget-wide v0, p0, Lokhttp3/internal/http2/Ping;->c:J const-wide/16 v2, -0x1 cmp-long v4, v0, v2 if-nez v4, :cond_0 iget-wide v0, p0, Lokhttp3/internal/http2/Ping;->b:J cmp-long v4, v0, v2 if-eqz v4, :cond_0 .line 45 iget-wide v0, p0, Lokhttp3/internal/http2/Ping;->b:J const-wide/16 v2, 0x1 sub-long/2addr v0, v2 iput-wide v0, p0, Lokhttp3/internal/http2/Ping;->c:J .line 46 iget-object v0, p0, Lokhttp3/internal/http2/Ping;->a:Ljava/util/concurrent/CountDownLatch; invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V return-void .line 44 :cond_0 new-instance v0, Ljava/lang/IllegalStateException; invoke-direct {v0}, Ljava/lang/IllegalStateException;->()V throw v0 .end method