public interface IProgressCallback
Modifier and Type | Method and Description |
---|---|
default void |
init(fr.flowarg.flowlogger.ILogger logger)
This method is called at
FlowUpdater initialization. |
default void |
onFileDownloaded(java.io.File file)
Deprecated.
Prefer using
onFileDownloaded(Path) |
default void |
onFileDownloaded(java.nio.file.Path path)
This method is called before
update(long, long) when a file is downloaded. |
default void |
step(Step step)
This method is called when a step started.
|
default void |
update(long downloaded,
long max)
This method is called when a new file is downloaded.
|
default void init(fr.flowarg.flowlogger.ILogger logger)
FlowUpdater
initialization.logger
- ILogger
of FlowUpdater instance.default void step(Step step)
step
- Actual Step
.default void update(long downloaded, long max)
downloaded
- Number of downloaded/checked bytes.max
- Total bytes to download/check.@Deprecated default void onFileDownloaded(java.io.File file)
onFileDownloaded(Path)
update(long, long)
when a file is downloaded.file
- the file downloaded.default void onFileDownloaded(java.nio.file.Path path)
update(long, long)
when a file is downloaded.path
- the file downloaded.