public final class org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner<T, BT extends org.eclipse.collections.api.block.procedure.Procedure<? super T>>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner
super_class: java.lang.Object
{
private final org.eclipse.collections.api.block.function.Function<org.eclipse.collections.impl.parallel.ProcedureFJTask<T, BT>, BT> procedureFunction;
descriptor: Lorg/eclipse/collections/api/block/function/Function;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/eclipse/collections/api/block/function/Function<Lorg/eclipse/collections/impl/parallel/ProcedureFJTask<TT;TBT;>;TBT;>;
private org.eclipse.collections.impl.parallel.ProcedureFJTask<T, BT>[] procedures;
descriptor: [Lorg/eclipse/collections/impl/parallel/ProcedureFJTask;
flags: (0x0002) ACC_PRIVATE
Signature: [Lorg/eclipse/collections/impl/parallel/ProcedureFJTask<TT;TBT;>;
private java.lang.Throwable error;
descriptor: Ljava/lang/Throwable;
flags: (0x0002) ACC_PRIVATE
private final org.eclipse.collections.impl.parallel.Combiner<BT> combiner;
descriptor: Lorg/eclipse/collections/impl/parallel/Combiner;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;
private final int taskCount;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.BlockingQueue<BT> outputQueue;
descriptor: Ljava/util/concurrent/BlockingQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/BlockingQueue<TBT;>;
private final java.util.concurrent.CountDownLatch latch;
descriptor: Ljava/util/concurrent/CountDownLatch;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.eclipse.collections.impl.parallel.Combiner<BT>, );
descriptor: (Lorg/eclipse/collections/impl/parallel/Combiner;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner$ProcedureExtractor
dup
aload 0
invokespecial org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner$ProcedureExtractor.<init>:(Lorg/eclipse/collections/impl/parallel/ProcedureFJTaskRunner;)V
putfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.procedureFunction:Lorg/eclipse/collections/api/block/function/Function;
2: aload 0
aload 1
putfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
3: aload 0
iload 2
putfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.taskCount:I
4: aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
invokeinterface org.eclipse.collections.impl.parallel.Combiner.useCombineOne:()Z
ifeq 8
5: aload 0
new java.util.concurrent.ArrayBlockingQueue
dup
iload 2
invokespecial java.util.concurrent.ArrayBlockingQueue.<init>:(I)V
putfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.outputQueue:Ljava/util/concurrent/BlockingQueue;
6: aload 0
aconst_null
putfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.latch:Ljava/util/concurrent/CountDownLatch;
7: goto 10
8: StackMap locals: org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner org.eclipse.collections.impl.parallel.Combiner int
StackMap stack:
aload 0
new java.util.concurrent.CountDownLatch
dup
iload 2
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
putfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.latch:Ljava/util/concurrent/CountDownLatch;
9: aload 0
aconst_null
putfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.outputQueue:Ljava/util/concurrent/BlockingQueue;
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/eclipse/collections/impl/parallel/ProcedureFJTaskRunner<TT;TBT;>;
0 11 1 newCombiner Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;
0 11 2 taskCount I
Signature: (Lorg/eclipse/collections/impl/parallel/Combiner<TBT;>;I)V
MethodParameters:
Name Flags
newCombiner
taskCount
private void createAndExecuteTasks(java.util.concurrent.Executor, org.eclipse.collections.impl.parallel.ProcedureFactory<BT>, java.util.List<T>);
descriptor: (Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ProcedureFactory;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=10, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.taskCount:I
anewarray org.eclipse.collections.impl.parallel.ProcedureFJTask
putfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.procedures:[Lorg/eclipse/collections/impl/parallel/ProcedureFJTask;
1: aload 3
invokeinterface java.util.List.size:()I
aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.taskCount:I
idiv
istore 4
start local 4 2: iconst_0
istore 5
start local 5 3: goto 11
4: StackMap locals: int int
StackMap stack:
new org.eclipse.collections.impl.parallel.ProcedureFJTask
dup
aload 0
aload 2
aload 3
iload 5
iload 4
5: iload 5
aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.taskCount:I
iconst_1
isub
if_icmpne 6
iconst_1
goto 7
StackMap locals: org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner java.util.concurrent.Executor org.eclipse.collections.impl.parallel.ProcedureFactory java.util.List int int
StackMap stack: new 4 new 4 org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner org.eclipse.collections.impl.parallel.ProcedureFactory java.util.List int int
6: iconst_0
7: StackMap locals: org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner java.util.concurrent.Executor org.eclipse.collections.impl.parallel.ProcedureFactory java.util.List int int
StackMap stack: new 4 new 4 org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner org.eclipse.collections.impl.parallel.ProcedureFactory java.util.List int int int
invokespecial org.eclipse.collections.impl.parallel.ProcedureFJTask.<init>:(Lorg/eclipse/collections/impl/parallel/ProcedureFJTaskRunner;Lorg/eclipse/collections/impl/parallel/ProcedureFactory;Ljava/util/List;IIZ)V
astore 6
start local 6 8: aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.procedures:[Lorg/eclipse/collections/impl/parallel/ProcedureFJTask;
iload 5
aload 6
aastore
9: aload 1
aload 6
invokeinterface java.util.concurrent.Executor.execute:(Ljava/lang/Runnable;)V
end local 6 10: iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.taskCount:I
if_icmplt 4
end local 5 12: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/eclipse/collections/impl/parallel/ProcedureFJTaskRunner<TT;TBT;>;
0 13 1 executor Ljava/util/concurrent/Executor;
0 13 2 procedureFactory Lorg/eclipse/collections/impl/parallel/ProcedureFactory<TBT;>;
0 13 3 list Ljava/util/List<TT;>;
2 13 4 sectionSize I
3 12 5 index I
8 10 6 procedureFJTask Lorg/eclipse/collections/impl/parallel/ProcedureFJTask<TT;TBT;>;
Signature: (Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ProcedureFactory<TBT;>;Ljava/util/List<TT;>;)V
MethodParameters:
Name Flags
executor
procedureFactory
list
public void setFailed(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.error:Ljava/lang/Throwable;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/collections/impl/parallel/ProcedureFJTaskRunner<TT;TBT;>;
0 2 1 newError Ljava/lang/Throwable;
MethodParameters:
Name Flags
newError
public void taskCompleted(org.eclipse.collections.impl.parallel.ProcedureFJTask<T, BT>);
descriptor: (Lorg/eclipse/collections/impl/parallel/ProcedureFJTask;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
invokeinterface org.eclipse.collections.impl.parallel.Combiner.useCombineOne:()Z
ifeq 3
1: aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.outputQueue:Ljava/util/concurrent/BlockingQueue;
aload 1
invokevirtual org.eclipse.collections.impl.parallel.ProcedureFJTask.getProcedure:()Lorg/eclipse/collections/api/block/procedure/Procedure;
invokeinterface java.util.concurrent.BlockingQueue.add:(Ljava/lang/Object;)Z
pop
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/collections/impl/parallel/ProcedureFJTaskRunner<TT;TBT;>;
0 5 1 task Lorg/eclipse/collections/impl/parallel/ProcedureFJTask<TT;TBT;>;
Signature: (Lorg/eclipse/collections/impl/parallel/ProcedureFJTask<TT;TBT;>;)V
MethodParameters:
Name Flags
task
public void executeAndCombine(java.util.concurrent.Executor, org.eclipse.collections.impl.parallel.ProcedureFactory<BT>, java.util.List<T>);
descriptor: (Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ProcedureFactory;Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokevirtual org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.createAndExecuteTasks:(Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ProcedureFactory;Ljava/util/List;)V
1: aload 0
invokevirtual org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.join:()V
2: aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.error:Ljava/lang/Throwable;
ifnull 4
3: new java.lang.RuntimeException
dup
ldc "One or more parallel tasks failed"
aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.error:Ljava/lang/Throwable;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.combineTasks:()V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/collections/impl/parallel/ProcedureFJTaskRunner<TT;TBT;>;
0 6 1 executor Ljava/util/concurrent/Executor;
0 6 2 procedureFactory Lorg/eclipse/collections/impl/parallel/ProcedureFactory<TBT;>;
0 6 3 list Ljava/util/List<TT;>;
Signature: (Ljava/util/concurrent/Executor;Lorg/eclipse/collections/impl/parallel/ProcedureFactory<TBT;>;Ljava/util/List<TT;>;)V
MethodParameters:
Name Flags
executor
procedureFactory
list
private void join();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
invokeinterface org.eclipse.collections.impl.parallel.Combiner.useCombineOne:()Z
ifeq 7
1: aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.taskCount:I
istore 1
start local 1 2: goto 5
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.outputQueue:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.take:()Ljava/lang/Object;
checkcast org.eclipse.collections.api.block.procedure.Procedure
invokeinterface org.eclipse.collections.impl.parallel.Combiner.combineOne:(Ljava/lang/Object;)V
4: iinc 1 -1
5: StackMap locals:
StackMap stack:
iload 1
ifgt 3
end local 1 6: goto 11
7: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.await:()V
8: goto 11
9: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 1
start local 1 10: new java.lang.RuntimeException
dup
ldc "Combine failed"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/eclipse/collections/impl/parallel/ProcedureFJTaskRunner<TT;TBT;>;
2 6 1 remainingTaskCount I
10 11 1 e Ljava/lang/InterruptedException;
Exception table:
from to target type
0 8 9 Class java.lang.InterruptedException
private void combineTasks();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
invokeinterface org.eclipse.collections.impl.parallel.Combiner.useCombineOne:()Z
ifne 2
1: aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.combiner:Lorg/eclipse/collections/impl/parallel/Combiner;
aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.procedures:[Lorg/eclipse/collections/impl/parallel/ProcedureFJTask;
aload 0
getfield org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner.procedureFunction:Lorg/eclipse/collections/api/block/function/Function;
invokestatic org.eclipse.collections.impl.utility.ArrayIterate.collect:([Ljava/lang/Object;Lorg/eclipse/collections/api/block/function/Function;)Lorg/eclipse/collections/api/list/MutableList;
invokeinterface org.eclipse.collections.impl.parallel.Combiner.combineAll:(Ljava/lang/Iterable;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/collections/impl/parallel/ProcedureFJTaskRunner<TT;TBT;>;
}
Signature: <T:Ljava/lang/Object;BT::Lorg/eclipse/collections/api/block/procedure/Procedure<-TT;>;>Ljava/lang/Object;
SourceFile: "ProcedureFJTaskRunner.java"
NestMembers:
org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner$ProcedureExtractor
InnerClasses:
private final ProcedureExtractor = org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner$ProcedureExtractor of org.eclipse.collections.impl.parallel.ProcedureFJTaskRunner