static private boolean tryCancelUpdate(final BigdataRDFContext context,final UUID queryId){
  final RunningQuery query=context.getQueryById(queryId);
  if (query != null) {
    if (query.queryTask instanceof UpdateTask) {
      final Future<Void> f=((UpdateTask)query.queryTask).updateFuture;
      if (f != null) {
        if (f.cancel(true)) {
          return true;
        }
      }
    }
  }
  return false;
}

static private boolean tryCancelUpdate ( final BigdataRDFContext context , final UUID queryId ) { final RunningQuery query = context . getQueryById ( queryId ) ; if ( query != null ) { if ( query . queryTask instanceof UpdateTask ) { final Future < Void > f = ( ( UpdateTask ) query . queryTask ) . updateFuture ; if ( f != null ) { if ( f . cancel ( true ) ) { return true ; } } } } return false ; }
attempt to cancel a running sparql update request .
