abstract class jdk.internal.net.http.TimeoutEvent implements java.lang.Comparable<jdk.internal.net.http.TimeoutEvent>
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: jdk.internal.net.http.TimeoutEvent
super_class: java.lang.Object
{
private static final java.util.concurrent.atomic.AtomicLong COUNTER;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final long id;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.time.Duration duration;
descriptor: Ljava/time/Duration;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.time.Instant deadline;
descriptor: Ljava/time/Instant;
flags: (0x0012) ACC_PRIVATE, 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=2, locals=0, args_size=0
0: ldc Ljdk/internal/net/http/TimeoutEvent;
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.TimeoutEvent.$assertionsDisabled:Z
3: new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putstatic jdk.internal.net.http.TimeoutEvent.COUNTER:Ljava/util/concurrent/atomic/AtomicLong;
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
getstatic jdk.internal.net.http.TimeoutEvent.COUNTER:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
putfield jdk.internal.net.http.TimeoutEvent.id:J
2: aload 0
aload 1
putfield jdk.internal.net.http.TimeoutEvent.duration:Ljava/time/Duration;
3: aload 0
invokestatic java.time.Instant.now:()Ljava/time/Instant;
aload 1
invokevirtual java.time.Instant.plus:(Ljava/time/temporal/TemporalAmount;)Ljava/time/Instant;
putfield jdk.internal.net.http.TimeoutEvent.deadline:Ljava/time/Instant;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/net/http/TimeoutEvent;
0 5 1 duration Ljava/time/Duration;
MethodParameters:
Name Flags
duration
public abstract void handle();
descriptor: ()V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public java.time.Instant deadline();
descriptor: ()Ljava/time/Instant;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.TimeoutEvent.deadline:Ljava/time/Instant;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/TimeoutEvent;
public int compareTo(jdk.internal.net.http.TimeoutEvent);
descriptor: (Ljdk/internal/net/http/TimeoutEvent;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 1
iconst_0
ireturn
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.TimeoutEvent.deadline:Ljava/time/Instant;
aload 1
getfield jdk.internal.net.http.TimeoutEvent.deadline:Ljava/time/Instant;
invokevirtual java.time.Instant.compareTo:(Ljava/time/Instant;)I
istore 2
start local 2 2: iload 2
ifne 7
aload 0
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 7
3: aload 0
getfield jdk.internal.net.http.TimeoutEvent.id:J
aload 1
getfield jdk.internal.net.http.TimeoutEvent.id:J
lsub
lstore 3
start local 3 4: lload 3
lconst_0
lcmp
ifge 5
iconst_m1
ireturn
5: StackMap locals: int long
StackMap stack:
lload 3
lconst_0
lcmp
ifle 6
iconst_1
ireturn
6: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.TimeoutEvent.$assertionsDisabled:Z
ifne 7
new java.lang.AssertionError
dup
ldc "Different events with same id and deadline"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 3 7: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/net/http/TimeoutEvent;
0 8 1 other Ljdk/internal/net/http/TimeoutEvent;
2 8 2 compareDeadline I
4 7 3 diff J
MethodParameters:
Name Flags
other
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "TimeoutEvent[id="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.net.http.TimeoutEvent.id:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ", duration="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.net.http.TimeoutEvent.duration:Ljava/time/Duration;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
1: ldc ", deadline="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.net.http.TimeoutEvent.deadline:Ljava/time/Instant;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/TimeoutEvent;
public int compareTo(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast jdk.internal.net.http.TimeoutEvent
invokevirtual jdk.internal.net.http.TimeoutEvent.compareTo:(Ljdk/internal/net/http/TimeoutEvent;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/lang/Comparable<Ljdk/internal/net/http/TimeoutEvent;>;
SourceFile: "TimeoutEvent.java"