public void cancelRestoreTask(){
  restoreLock.lock();
  try {
    if (lifeRestoreTask != null) {
      lifeRestoreTask.cancel(false);
      lifeRestoreTask=null;
    }
  }
  finally {
    restoreLock.unlock();
  }
}

public void cancelRestoreTask ( ) { restoreLock . lock ( ) ; try { if ( lifeRestoreTask != null ) { lifeRestoreTask . cancel ( false ) ; lifeRestoreTask = null ; } } finally { restoreLock . unlock ( ) ; } }
cancel currently running restore task
