protected abstract void doAsyncTask()

in app/common/src/main/java/com/googlecodesamples/cloud/jss/common/task/BasePublisherTask.java [35:49]


  protected abstract void doAsyncTask()
      throws InterruptedException, ExecutionException, IOException;

  @Override
  public void run() {
    try {
      while (!Thread.currentThread().isInterrupted()) {
        doAsyncTask();
      }
    } catch (InterruptedException e) {
      Thread.currentThread().interrupt();
    } catch (IOException | ExecutionException e) {
      throw new RuntimeException(e);
    }
  }