Revert "Merge branch 'bug/JAL-3807_jpred-with-slivka' into alpha/JAL-3066_Jalview_212...
[jalview.git] / src / jalview / api / AlignCalcManagerI2.java
index 756e402..0bd6c3c 100644 (file)
@@ -45,6 +45,13 @@ public interface AlignCalcManagerI2
   void removeWorkerForAnnotation(AlignmentAnnotation annot);
   
   /**
+   * Alias of removeWorkerForAnnotation
+   */
+  default void removeWorkersForAnnotation(AlignmentAnnotation annot) {
+    removeWorkerForAnnotation(annot);
+  }
+  
+  /**
    * Removes all workers of a given class. The classes are compared using
    * {@link Class#equals(Object)}. 
    */
@@ -111,4 +118,10 @@ public interface AlignCalcManagerI2
    * Remove previously registered worker listener.
    */
   void removeAlignCalcListener(AlignCalcListener listener);
+  
+  /**
+   * Stops the manager from running new jobs and cleans-up all
+   * resources such as threads and thread pools.
+   */
+  void shutdown();
 }