/** * Called within the queue maintenance process to create a {@link WorkUnit} for the given {@link SubTask} */ public WorkUnit createWorkUnit(SubTask execUnit) { WorkUnit wu = new WorkUnit(this, execUnit); workUnits.add(wu); return wu; }
/** * Called within the queue maintenance process to create a {@link WorkUnit} for the given {@link SubTask} */ public WorkUnit createWorkUnit(SubTask execUnit) { WorkUnit wu = new WorkUnit(this, execUnit); workUnits.add(wu); return wu; }
/** * Called by the executor that executes a member {@link SubTask} that belongs to this task * to create its {@link WorkUnit}. */ public WorkUnit createWorkUnit(SubTask execUnit) { future.addExecutor(Executor.currentExecutor()); WorkUnit wu = new WorkUnit(this, execUnit); workUnits.add(wu); return wu; }
/** * Called by the executor that executes a member {@link SubTask} that * belongs to this task to create its {@link WorkUnit}. */ public WorkUnit createWorkUnit(SubTask execUnit) { future.addExecutor(Executor.currentExecutor()); WorkUnit wu = new WorkUnit(this, execUnit); workUnits.add(wu); return wu; }
/** * Called by the executor that executes a member {@link SubTask} that belongs to this task * to create its {@link WorkUnit}. */ public WorkUnit createWorkUnit(SubTask execUnit) { future.addExecutor(Executor.currentExecutor()); WorkUnit wu = new WorkUnit(this, execUnit); workUnits.add(wu); return wu; }
/** * Called by the executor that executes a member {@link SubTask} that belongs to this task * to create its {@link WorkUnit}. */ public WorkUnit createWorkUnit(SubTask execUnit) { future.addExecutor(Executor.currentExecutor()); WorkUnit wu = new WorkUnit(this, execUnit); workUnits.add(wu); return wu; }