public final class jdk.jpackage.internal.RetryExecutor
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.jpackage.internal.RetryExecutor
super_class: java.lang.Object
{
private java.util.function.Consumer<jdk.jpackage.internal.Executor> executorInitializer;
descriptor: Ljava/util/function/Consumer;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/function/Consumer<Ljdk/jpackage/internal/Executor;>;
private boolean aborted;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int attempts;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int timeoutMillis;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_5
invokevirtual jdk.jpackage.internal.RetryExecutor.setMaxAttemptsCount:(I)Ljdk/jpackage/internal/RetryExecutor;
pop
2: aload 0
sipush 2000
invokevirtual jdk.jpackage.internal.RetryExecutor.setAttemptTimeoutMillis:(I)Ljdk/jpackage/internal/RetryExecutor;
pop
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jpackage/internal/RetryExecutor;
public jdk.jpackage.internal.RetryExecutor setMaxAttemptsCount(int);
descriptor: (I)Ljdk/jpackage/internal/RetryExecutor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.jpackage.internal.RetryExecutor.attempts:I
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/RetryExecutor;
0 2 1 v I
MethodParameters:
Name Flags
v
public jdk.jpackage.internal.RetryExecutor setAttemptTimeoutMillis(int);
descriptor: (I)Ljdk/jpackage/internal/RetryExecutor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.jpackage.internal.RetryExecutor.timeoutMillis:I
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/RetryExecutor;
0 2 1 v I
MethodParameters:
Name Flags
v
public jdk.jpackage.internal.RetryExecutor setExecutorInitializer(java.util.function.Consumer<jdk.jpackage.internal.Executor>);
descriptor: (Ljava/util/function/Consumer;)Ljdk/jpackage/internal/RetryExecutor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.jpackage.internal.RetryExecutor.executorInitializer:Ljava/util/function/Consumer;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/RetryExecutor;
0 2 1 v Ljava/util/function/Consumer<Ljdk/jpackage/internal/Executor;>;
Signature: (Ljava/util/function/Consumer<Ljdk/jpackage/internal/Executor;>;)Ljdk/jpackage/internal/RetryExecutor;
MethodParameters:
Name Flags
v
public void abort();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield jdk.jpackage.internal.RetryExecutor.aborted:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/RetryExecutor;
public boolean isAborted();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jpackage.internal.RetryExecutor.aborted:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/RetryExecutor;
static jdk.jpackage.internal.RetryExecutor retryOnKnownErrorMessage(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/jpackage/internal/RetryExecutor;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new jdk.jpackage.internal.RetryExecutor
dup
invokespecial jdk.jpackage.internal.RetryExecutor.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
aload 1
invokedynamic accept(Ljava/lang/String;Ljdk/jpackage/internal/RetryExecutor;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/jpackage/internal/RetryExecutor.lambda$0(Ljava/lang/String;Ljdk/jpackage/internal/RetryExecutor;Ljdk/jpackage/internal/Executor;)V (6)
(Ljdk/jpackage/internal/Executor;)V
invokevirtual jdk.jpackage.internal.RetryExecutor.setExecutorInitializer:(Ljava/util/function/Consumer;)Ljdk/jpackage/internal/RetryExecutor;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 v Ljava/lang/String;
1 2 1 result Ljdk/jpackage/internal/RetryExecutor;
MethodParameters:
Name Flags
v
public void execute(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokedynamic get([Ljava/lang/String;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/jpackage/internal/RetryExecutor.lambda$3([Ljava/lang/String;)Ljdk/jpackage/internal/Executor; (6)
()Ljdk/jpackage/internal/Executor;
invokevirtual jdk.jpackage.internal.RetryExecutor.executeLoop:(Ljava/util/function/Supplier;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/RetryExecutor;
0 2 1 cmdline [Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cmdline
public void execute(java.lang.ProcessBuilder);
descriptor: (Ljava/lang/ProcessBuilder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokedynamic get(Ljava/lang/ProcessBuilder;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/jpackage/internal/RetryExecutor.lambda$4(Ljava/lang/ProcessBuilder;)Ljdk/jpackage/internal/Executor; (6)
()Ljdk/jpackage/internal/Executor;
invokevirtual jdk.jpackage.internal.RetryExecutor.executeLoop:(Ljava/util/function/Supplier;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/RetryExecutor;
0 2 1 pb Ljava/lang/ProcessBuilder;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pb
private void executeLoop(java.util.function.Supplier<jdk.jpackage.internal.Executor>);
descriptor: (Ljava/util/function/Supplier;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
putfield jdk.jpackage.internal.RetryExecutor.aborted:Z
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.RetryExecutor.aborted:Z
ifeq 3
2: goto 16
3: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast jdk.jpackage.internal.Executor
astore 2
start local 2 4: aload 0
getfield jdk.jpackage.internal.RetryExecutor.executorInitializer:Ljava/util/function/Consumer;
ifnull 6
5: aload 0
getfield jdk.jpackage.internal.RetryExecutor.executorInitializer:Ljava/util/function/Consumer;
aload 2
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
6: StackMap locals: jdk.jpackage.internal.Executor
StackMap stack:
aload 2
invokevirtual jdk.jpackage.internal.Executor.executeExpectSuccess:()Ljdk/jpackage/internal/Executor;
pop
7: goto 16
end local 2 8: StackMap locals: jdk.jpackage.internal.RetryExecutor java.util.function.Supplier
StackMap stack: java.io.IOException
astore 2
start local 2 9: aload 0
getfield jdk.jpackage.internal.RetryExecutor.aborted:Z
ifne 10
aload 0
dup
getfield jdk.jpackage.internal.RetryExecutor.attempts:I
iconst_1
isub
dup_x1
putfield jdk.jpackage.internal.RetryExecutor.attempts:I
ifgt 11
10: StackMap locals: java.io.IOException
StackMap stack:
aload 2
athrow
end local 2 11: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.RetryExecutor.timeoutMillis:I
i2l
invokestatic java.lang.Thread.sleep:(J)V
12: goto 1
StackMap locals:
StackMap stack: java.lang.InterruptedException
13: astore 2
start local 2 14: aload 2
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
15: new java.lang.RuntimeException
dup
aload 2
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 16: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/jpackage/internal/RetryExecutor;
0 17 1 execSupplier Ljava/util/function/Supplier<Ljdk/jpackage/internal/Executor;>;
4 8 2 exec Ljdk/jpackage/internal/Executor;
9 11 2 ex Ljava/io/IOException;
14 16 2 ex Ljava/lang/InterruptedException;
Exception table:
from to target type
3 7 8 Class java.io.IOException
11 12 13 Class java.lang.InterruptedException
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/function/Supplier<Ljdk/jpackage/internal/Executor;>;)V
MethodParameters:
Name Flags
execSupplier
private static void lambda$0(java.lang.String, jdk.jpackage.internal.RetryExecutor, jdk.jpackage.internal.Executor);
descriptor: (Ljava/lang/String;Ljdk/jpackage/internal/RetryExecutor;Ljdk/jpackage/internal/Executor;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 2 0: aload 2
aload 0
aload 1
invokedynamic accept(Ljava/lang/String;Ljdk/jpackage/internal/RetryExecutor;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/jpackage/internal/RetryExecutor.lambda$1(Ljava/lang/String;Ljdk/jpackage/internal/RetryExecutor;Ljava/util/stream/Stream;)V (6)
(Ljava/util/stream/Stream;)V
invokevirtual jdk.jpackage.internal.Executor.setOutputConsumer:(Ljava/util/function/Consumer;)Ljdk/jpackage/internal/Executor;
pop
1: return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 2 2 exec Ljdk/jpackage/internal/Executor;
private static jdk.jpackage.internal.Executor lambda$3(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljdk/jpackage/internal/Executor;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokestatic jdk.jpackage.internal.Executor.of:([Ljava/lang/String;)Ljdk/jpackage/internal/Executor;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static jdk.jpackage.internal.Executor lambda$4(java.lang.ProcessBuilder);
descriptor: (Ljava/lang/ProcessBuilder;)Ljdk/jpackage/internal/Executor;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokestatic jdk.jpackage.internal.Executor.of:(Ljava/lang/ProcessBuilder;)Ljdk/jpackage/internal/Executor;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static void lambda$1(java.lang.String, jdk.jpackage.internal.RetryExecutor, java.util.stream.Stream);
descriptor: (Ljava/lang/String;Ljdk/jpackage/internal/RetryExecutor;Ljava/util/stream/Stream;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 2 0: aload 2
aload 0
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic test(Ljava/lang/String;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
java/lang/String.equals(Ljava/lang/Object;)Z (5)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.anyMatch:(Ljava/util/function/Predicate;)Z
ifne 2
1: aload 1
invokevirtual jdk.jpackage.internal.RetryExecutor.abort:()V
2: StackMap locals:
StackMap stack:
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 3 2 output Ljava/util/stream/Stream<Ljava/lang/String;>;
}
SourceFile: "RetryExecutor.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles