This Pull Request introduces LogAdapter class for writing log on class outside of MainWindow, so displaying it in to both Console (Debug only) and LogBox on MainWindow is possible.
This also adding a latest changes on PartialHttpClient to add retry-able download per thread to avoid thread-lock if network problem is happening. The default retry count is 5 times and retry delay is 1 second.
To adjust it, define the class with this format:
/*
* max_retrycount : Maximum count of retries for downloading (default: 5).
* retry_delaysec : Delay for each retry in second (default: 1).
*/
DownloadParallelAdapter parallelDownload = new DownloadParallelAdapter(false, max_retrycount, retry_delaysec);
Major Changes
Introducing LogAdapter for sending Log() based on event.
Adding retry-able thread download for ParallelHttpClient.
Minor Changes
Adding LogEventListener() on MainWindow for listening LogAdapter events, then calling Log().
Changes In Action
The left log window and right log console have the same output while at the same time, PartialHttpClient is retrying a failed download at one of the thread while network problem has occured
Pull Request Overview
This Pull Request introduces
LogAdapter
class for writing log on class outside ofMainWindow
, so displaying it in to both Console (Debug only) andLogBox
onMainWindow
is possible.This also adding a latest changes on
PartialHttpClient
to add retry-able download per thread to avoid thread-lock if network problem is happening. The default retry count is 5 times and retry delay is 1 second. To adjust it, define the class with this format:Major Changes
LogAdapter
for sendingLog()
based on event.ParallelHttpClient
.Minor Changes
LogEventListener()
onMainWindow
for listeningLogAdapter
events, then callingLog()
.Changes In Action