Class GitHubBuildsUpdater
java.lang.Object
io.github.bakedlibs.dough.updater.GitHubBuildsUpdater
- All Implemented Interfaces:
PluginUpdater<PrefixedVersion>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PrefixedVersionprotected final CompletableFuture<PrefixedVersion> -
Constructor Summary
ConstructorsConstructorDescriptionGitHubBuildsUpdater(Plugin plugin, File file, String repo) GitHubBuildsUpdater(Plugin plugin, File file, String repo, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionintgetFile()protected voidscheduleAsyncUpdateTask(io.github.bakedlibs.dough.updater.UpdaterTask<PrefixedVersion> task) voidsetConnectionTimeout(int timeout) voidstart()
-
Field Details
-
currentVersion
-
latestVersion
-
-
Constructor Details
-
GitHubBuildsUpdater
-
GitHubBuildsUpdater
-
-
Method Details
-
start
public void start() -
getConnectionTimeout
public int getConnectionTimeout()- Specified by:
getConnectionTimeoutin interfacePluginUpdater<V extends Version>
-
setConnectionTimeout
public void setConnectionTimeout(int timeout) -
getPlugin
- Specified by:
getPluginin interfacePluginUpdater<V extends Version>
-
getLogger
-
getFile
- Specified by:
getFilein interfacePluginUpdater<V extends Version>
-
getCurrentVersion
- Specified by:
getCurrentVersionin interfacePluginUpdater<V extends Version>
-
getLatestVersion
- Specified by:
getLatestVersionin interfacePluginUpdater<V extends Version>
-
scheduleAsyncUpdateTask
protected void scheduleAsyncUpdateTask(@Nonnull io.github.bakedlibs.dough.updater.UpdaterTask<PrefixedVersion> task)
-