public void onCancelRQ()

in util/src/main/java/com/google/cloud/healthcare/imaging/dicomadapter/DimseTask.java [47:62]


  public void onCancelRQ(Association as) {
    log.info(this.getClass().getSimpleName() + " onCancelRQ");

    if (!canceled) {
      canceled = true;
      synchronized (this) {
        if (runThread != null) {
          // Note that interrupt does not kill the thread and instead leads to InterruptedException
          // being thrown by most long duration methods (if used in subclasses).
          // Subclasses need to make sure to set runThread, provide response even if interrupted
          // (catch clause) and cleanup cancelRQHandler (finally clause)
          runThread.interrupt();
        }
      }
    }
  }