private void executeClaimedTask(ClaimedTask claimedTask){
  if (!claimedTask.setStartTime(new Date())) {
    _log.info("Claimed task is overdue; range not scanned: {}",claimedTask.getTask());
    return;
  }
  ScanRangeTask task=claimedTask.getTask();
  boolean releaseTask=false;
  try {
    _scanWorkflow.renewScanRangeTasks(ImmutableList.of(task),QUEUE_RENEW_TTL);
    releaseTask=asyncRangeScan(task);
  }
  finally {
    unclaimTask(claimedTask,releaseTask);
    _backgroundService.submit(_startScansIfAvailableRunnable);
  }
}

private void executeClaimedTask ( ClaimedTask claimedTask ) { if ( ! claimedTask . setStartTime ( new Date ( ) ) ) { _log . info ( "Claimed task is overdue; range not scanned: {}" , claimedTask . getTask ( ) ) ; return ; } ScanRangeTask task = claimedTask . getTask ( ) ; boolean releaseTask = false ; try { _scanWorkflow . renewScanRangeTasks ( ImmutableList . of ( task ) , QUEUE_RENEW_TTL ) ; releaseTask = asyncRangeScan ( task ) ; } finally { unclaimTask ( claimedTask , releaseTask ) ; _backgroundService . submit ( _startScansIfAvailableRunnable ) ; } }
executes a previously claimed scan range task .
