Class DownloaderSettings
java.lang.Object
ua.mcchickenstudio.opencreative.settings.DownloaderSettings
DownloaderSettings
This class represents a settings of downloader.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns maximum size of world archive in megabytes.intReturns how many seconds need to pass before world archive will be removed automatically.voidload()Loads settings of downloader from configuration.
-
Constructor Details
-
DownloaderSettings
public DownloaderSettings()
-
-
Method Details
-
load
public void load()Loads settings of downloader from configuration. -
getMaxArchiveSize
public int getMaxArchiveSize()Returns maximum size of world archive in megabytes.- Returns:
- maximum size of archive in MB.
-
getMaxStoringTime
public int getMaxStoringTime()Returns how many seconds need to pass before world archive will be removed automatically.- Returns:
- maximum time of storing archive in temp folder in seconds.
-