Class PostDownloadHandler

    • Constructor Detail

      • PostDownloadHandler

        public PostDownloadHandler​(DownloadTask task,
                                   Future<?> future,
                                   Consumer<Collection<Object>> errorReporter)
        Creates a new PostDownloadHandler using a custom error reporter
        Parameters:
        task - the asynchronous download task
        future - the future on which the completion of the download task can be synchronized
        errorReporter - a callback to inform about the number errors happened during the download task
    • Method Detail

      • addNoDataErrorMessage

        public static boolean addNoDataErrorMessage​(String message)
        Adds a new translated error message indicating that no data has been downloaded.
        Parameters:
        message - new translated error message indicating that no data has been downloaded.
        Returns:
        true if the message was not already known
        Since:
        15358
      • isNoDataErrorMessage

        public static boolean isNoDataErrorMessage​(Object message)
        Determines if a translated error message indicates that no data has been downloaded.
        Parameters:
        message - translated error message to check
        Returns:
        true if the message indicates that no data has been downloaded
        Since:
        15358