private boolean checkTaskIsInterrupted(){
  boolean interrupted=Thread.interrupted();
  if (interrupted)   log(LOG_TASK_INTERRUPTED);
  return interrupted;
}

private boolean checkTaskIsInterrupted ( ) { boolean interrupted = Thread . interrupted ( ) ; if ( interrupted ) log ( LOG_TASK_INTERRUPTED ) ; return interrupted ; }
check whether the current task was interrupted
