Class UpdateHelper
java.lang.Object
be.yildizgames.common.application.helper.updater.UpdateHelper
Handles checking for and applying updates.
- Author:
- Grégory Van den Borre
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidupdate(String url, String archiveName, TemporalAmount delay, int timeout, List<UpdateDownloadListener> listener) Checks for and applies any available updates.
-
Constructor Details
-
UpdateHelper
public UpdateHelper()Creates a new update helper.
-
-
Method Details
-
update
public final void update(String url, String archiveName, TemporalAmount delay, int timeout, List<UpdateDownloadListener> listener) Checks for and applies any available updates.- Parameters:
url- the update URLarchiveName- the archive file namedelay- minimum delay between checkstimeout- HTTP timeoutlistener- event listeners
-