public static boolean inspectAndInflowConflictPath(int id, long sofar,
                                                       String tempFilePath, String targetFilePath,
                                                       IThreadPoolMonitor monitor) {
        if (targetFilePath != null && tempFilePath != null) {
            final int anotherSameTempPathTaskId =
                    monitor.findRunningTaskIdBySameTempPath(tempFilePath, id);
            if (anotherSameTempPathTaskId != 0) {
                MessageSnapshotFlow.getImpl().
                        inflow(MessageSnapshotTaker.catchException(id, sofar,
                                new PathConflictException(anotherSameTempPathTaskId, tempFilePath,
                                        targetFilePath)));
                return true;
            }
        }

        return false;
    }
public static boolean inspectAndInflowConflictPath ( int id , long sofar , String tempFilePath , String targetFilePath , IThreadPoolMonitor monitor ) { if ( targetFilePath != null && tempFilePath != null ) { final int anotherSameTempPathTaskId = monitor . findRunningTaskIdBySameTempPath ( tempFilePath , id ) ; if ( anotherSameTempPathTaskId != 0 ) { MessageSnapshotFlow . getImpl ( ) . inflow ( MessageSnapshotTaker . catchException ( id , sofar , new PathConflictException ( anotherSameTempPathTaskId , tempFilePath , targetFilePath ) ) ) ; return true ; } } return false ; }
@param id             the {@code id} used for filter out which task would be notified the
'error' message if need.
@param sofar          the so far bytes of the current checking-task.
@param tempFilePath   the temp file path(file path used for downloading) for the current
checking-task.
@param targetFilePath the target file path for the current checking-task.
@param monitor        the monitor for download-thread.
@return whether the task with {@code id} is refused to start, because of there is an another
running task with the same {@code tempFilePath}.