Package com.onec.ui
Class UpdateProperties
java.lang.Object
com.onec.ui.UpdateProperties
@ConfigurationProperties(prefix="onec.ui.update-check")
public class UpdateProperties
extends Object
Configures the "update available" check: the running app periodically asks onec-cloud what the
latest published framework version is and surfaces a notice when it is newer than its own.
On by default and fail-silent — an unreachable cloud, an offline host, or an app whose own version can't be determined simply yields no notice rather than an error or a wrong banner.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUrl()booleanvoidsetEnabled(boolean enabled) voidsetInitialDelay(Duration initialDelay) voidsetInterval(Duration interval) void
-
Constructor Details
-
UpdateProperties
public UpdateProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getUrl
-
setUrl
-
getInterval
-
setInterval
-
getInitialDelay
-
setInitialDelay
-