Skip to content

Instantly share code, notes, and snippets.

@tarilabs
Created November 6, 2017 19:26
Show Gist options
  • Save tarilabs/b44b2451070aa1eebb79234d13c63dde to your computer and use it in GitHub Desktop.
Save tarilabs/b44b2451070aa1eebb79234d13c63dde to your computer and use it in GitHub Desktop.
@FEELType private class DROOLS_1775_1 {}
@FEELType private class DROOLS_1775_2 {}
@FEELType private class DROOLS_1775_3 {}
@FEELType private class DROOLS_1775_4 {}
@FEELType private class DROOLS_1775_5 {}
@FEELType private class DROOLS_1775_6 {}
@FEELType private class DROOLS_1775_7 {}
@FEELType private class DROOLS_1775_8 {}
@FEELType private class DROOLS_1775_11 {}
@FEELType private class DROOLS_1775_12 {}
@FEELType private class DROOLS_1775_13 {}
@FEELType private class DROOLS_1775_14 {}
@FEELType private class DROOLS_1775_15 {}
@FEELType private class DROOLS_1775_16 {}
@FEELType private class DROOLS_1775_17 {}
@FEELType private class DROOLS_1775_18 {}
@FEELType private class DROOLS_1775_21 {}
@FEELType private class DROOLS_1775_22 {}
@FEELType private class DROOLS_1775_23 {}
@FEELType private class DROOLS_1775_24 {}
@FEELType private class DROOLS_1775_25 {}
@FEELType private class DROOLS_1775_26 {}
@FEELType private class DROOLS_1775_27 {}
@FEELType private class DROOLS_1775_28 {}
@Test
public void testDROOLS_1775() throws InterruptedException {
ExecutorService pool = Executors.newFixedThreadPool(7);
List<Callable<Type>> tasks = new ArrayList<>();
tasks.add(() -> JavaBackedType.of(DROOLS_1775_1 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_2 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_3 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_4 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_5 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_6 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_7 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_8 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_11.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_12.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_13.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_14.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_15.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_16.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_17.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_18.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_21.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_22.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_23.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_24.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_25.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_26.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_27.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_28.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_1 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_2 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_3 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_4 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_5 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_6 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_7 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_8 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_11.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_12.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_13.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_14.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_15.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_16.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_17.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_18.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_21.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_22.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_23.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_24.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_25.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_26.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_27.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_28.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_1 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_2 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_3 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_4 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_5 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_6 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_7 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_8 .class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_11.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_12.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_13.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_14.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_15.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_16.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_17.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_18.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_21.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_22.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_23.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_24.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_25.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_26.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_27.class ));
tasks.add(() -> JavaBackedType.of(DROOLS_1775_28.class ));
List<Future<Type>> invokeAll = pool.invokeAll(tasks);
invokeAll.stream().map(t -> {
try {
return t.get();
} catch (InterruptedException | ExecutionException e) {
e.printStackTrace();
return null;
}
}).forEach(System.out::println);
pool.shutdown();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment