1 package jalview.ws2.helpers;
3 import jalview.gui.WebserviceInfo;
4 import jalview.ws.WSClientI;
5 import jalview.ws2.actions.api.TaskI;
8 * A simple wrapper around the {@link TaskI} implementing {@link WSClientI}. Its
9 * main purpose is to delegate the call to {@link #cancelJob} to the underlying
14 public class WSClientTaskWrapper implements WSClientI
16 private TaskI<?> delegate;
18 private boolean cancellable;
20 private boolean canMerge;
22 public WSClientTaskWrapper(TaskI<?> task, boolean cancellable, boolean canMerge)
25 this.cancellable = cancellable;
26 this.canMerge = canMerge;
29 public WSClientTaskWrapper(TaskI<?> task)
31 this(task, true, false);
35 public boolean isCancellable()
41 public boolean canMergeResults()
47 public void cancelJob()