class WatchItemList {

	public int processItemAll() {
		int count = 0;
		synchronized (list) {
			for (int i = 0; i < size(); i++) {
				WatchItem item = list.get(i);
				if (item.getStatus() == ItemStatus.FILE_CAPTURED && processItem(item)) {
					count++;
				}
			}
		}
		if (count > 0) {
			LOGGER.trace("Starts processing {} files for folder {}", count, directoryName);
		}
		return count;
	}

	public  WatchItemList(String directoryName, CallbackHandlerDao handlerDao);

}