X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FAlignCalcManagerI2.java;h=0bd6c3c5838e16f08a749d2b699e6618f61f4410;hb=cfb79b69d9fa44595560659bd95d1d1cd27677ad;hp=756e402465a3a626cded697aa5344af2e5749941;hpb=924f05754d15d42a60511cc05e233fdf24a448f2;p=jalview.git diff --git a/src/jalview/api/AlignCalcManagerI2.java b/src/jalview/api/AlignCalcManagerI2.java index 756e402..0bd6c3c 100644 --- a/src/jalview/api/AlignCalcManagerI2.java +++ b/src/jalview/api/AlignCalcManagerI2.java @@ -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(); }