3 import java.io.IOException;
6 public interface WebServiceWorkerI extends PollableTaskI
10 List<WSJob> getJobs();
12 void start() throws IOException;
14 boolean poll() throws IOException;
16 WebServiceI getWebService();
18 default boolean isDone()
20 if (getJobs().size() == 0)
22 for (WSJob job : getJobs())
24 if (!job.getStatus().isDone() && !job.getStatus().isFailed())
31 * Called by the executor when the worker transitions to the done state
32 * either normally or exceptionally.