final class jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker
super_class: java.lang.Object
{
final java.time.Duration max;
descriptor: Ljava/time/Duration;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.atomic.AtomicLong startTime;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0010) ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/internal/net/http/MultiExchange;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.time.Duration);
descriptor: (Ljava/time/Duration;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker.startTime:Ljava/util/concurrent/atomic/AtomicLong;
2: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.time.Duration
putfield jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker.max:Ljava/time/Duration;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/MultiExchange$ConnectTimeoutTracker;
0 4 1 connectTimeout Ljava/time/Duration;
MethodParameters:
Name Flags
connectTimeout
java.time.Duration getRemaining();
descriptor: ()Ljava/time/Duration;
flags: (0x0000)
Code:
stack=5, locals=6, args_size=1
start local 0 0: invokestatic java.lang.System.nanoTime:()J
lstore 1
start local 1 1: aload 0
getfield jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker.startTime:Ljava/util/concurrent/atomic/AtomicLong;
lconst_0
lload 1
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndExchange:(JJ)J
lstore 3
start local 3 2: lload 3
lconst_0
lcmp
ifeq 3
aload 0
getfield jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker.max:Ljava/time/Duration;
invokevirtual java.time.Duration.isZero:()Z
ifeq 4
StackMap locals: long long
StackMap stack:
3: aload 0
getfield jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker.max:Ljava/time/Duration;
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker.max:Ljava/time/Duration;
lload 1
lload 3
lsub
invokestatic java.time.Duration.ofNanos:(J)Ljava/time/Duration;
invokevirtual java.time.Duration.minus:(Ljava/time/Duration;)Ljava/time/Duration;
astore 5
start local 5 5: getstatic jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker.$assertionsDisabled:Z
ifne 6
aload 5
aload 0
getfield jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker.max:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifle 6
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
6: StackMap locals: java.time.Duration
StackMap stack:
aload 5
invokevirtual java.time.Duration.isNegative:()Z
ifeq 7
getstatic java.time.Duration.ZERO:Ljava/time/Duration;
goto 8
StackMap locals:
StackMap stack:
7: aload 5
StackMap locals:
StackMap stack: java.time.Duration
8: areturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/net/http/MultiExchange$ConnectTimeoutTracker;
1 9 1 now J
2 9 3 previous J
5 9 5 remaining Ljava/time/Duration;
void reset();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker.startTime:Ljava/util/concurrent/atomic/AtomicLong;
lconst_0
invokevirtual java.util.concurrent.atomic.AtomicLong.set:(J)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/MultiExchange$ConnectTimeoutTracker;
}
SourceFile: "MultiExchange.java"
NestHost: jdk.internal.net.http.MultiExchange
InnerClasses:
private final ConnectTimeoutTracker = jdk.internal.net.http.MultiExchange$ConnectTimeoutTracker of jdk.internal.net.http.MultiExchange