/** * Create worker verticles for the current Vert.x and returns the list of their contexts. * * @param num the number of verticles to create * @return the contexts * @throws Exception anything preventing the creation of the workers */ protected List<Context> createWorkers(int num) throws Exception { List<Context> contexts = new ArrayList<>(); for (int i = 0;i < num;i++) { contexts.add(createWorker()); } return contexts; } }
/** * Create worker verticles for the current Vert.x and returns the list of their contexts. * * @param num the number of verticles to create * @return the contexts * @throws Exception anything preventing the creation of the workers */ protected List<Context> createWorkers(int num) throws Exception { List<Context> contexts = new ArrayList<>(); for (int i = 0;i < num;i++) { contexts.add(createWorker()); } return contexts; } }