private int addToTaskQueue(String account,
                               String storeId,
                               String spaceId,
                               List<String> contentIds) {
        Set<Task> tasks = new HashSet<>();
        int addedCount = 0;

        for (String contentId : contentIds) {
            BitIntegrityCheckTask bitIntegrityTask = new BitIntegrityCheckTask();
            bitIntegrityTask.setAccount(account);
            bitIntegrityTask.setContentId(contentId);
            bitIntegrityTask.setSpaceId(spaceId);
            bitIntegrityTask.setStoreId(storeId);
            Task task = bitIntegrityTask.writeTask();
            tasks.add(task);
            addedCount++;
        }

        getTaskQueue().put(tasks);
        return addedCount;
    }
private int addToTaskQueue ( String account , String storeId , String spaceId , List < String > contentIds ) { Set < Task > tasks = new HashSet < > ( ) ; int addedCount = 0 ; for ( String contentId : contentIds ) { BitIntegrityCheckTask bitIntegrityTask = new BitIntegrityCheckTask ( ) ; bitIntegrityTask . setAccount ( account ) ; bitIntegrityTask . setContentId ( contentId ) ; bitIntegrityTask . setSpaceId ( spaceId ) ; bitIntegrityTask . setStoreId ( storeId ) ; Task task = bitIntegrityTask . writeTask ( ) ; tasks . add ( task ) ; addedCount ++ ; } getTaskQueue ( ) . put ( tasks ) ; return addedCount ; }
@param account
@param storeId
@param contentIds
@return