package com.neverwinterdp.registry.task.dedicated;

abstract public class TaskSlotExecutor<T> {
  private DedicatedTaskContext<T> taskContext;
  private boolean                 interrupt = false;

  public TaskSlotExecutor(DedicatedTaskContext<T> taskContext) {
    this.taskContext        = taskContext;
  }

  public DedicatedTaskContext<T> getTaskContext() { return taskContext ; }
  
  public boolean isInterrupted() { return this.interrupt ; }
  
  public void interrupt() { interrupt = true; }
  
  public void clearInterrupt() { interrupt = true; }
  
  public void onInit() throws Exception {
  }
  
  public void onPreExecuteSlot() throws Exception {
  }
  
  abstract public void executeSlot() throws Exception;

  public void onPostExecuteSlot() throws Exception {
  }
}

@@ -533,35 +533,36 @@
 ) %7B interrupt = 
-tru
+fals
 e; %7D%0A  %0A  public

change end of task detection