-
Notifications
You must be signed in to change notification settings - Fork 17
UpdaterOptions
Flow Arg edited this page Nov 11, 2021
·
6 revisions
In this tutorial, you will learn how to customize some FlowUpdater's settings with UpdaterOptions.
UpdaterOptions is a buildable class only. Its builder is a static-class in UpdaterOptions.
Refer you to the JavaDoc to see the utility of each parameter.
Build an UpdaterOptions object as a classic builder.
Then, just add an instance of your freshly built UpdaterOptions object as a FlowUpdater's argument:
import fr.flowarg.flowupdater.FlowUpdater;
import fr.flowarg.flowupdater.utils.UpdaterOptions;
class Test {
public static void update() {
UpdaterOptions options = new UpdaterOptions.UpdaterOptionsBuilder()
.withSilentRead(false) // enable logging messages at reading step
.build();
FlowUpdater flowUpdater = new FlowUpdater.FlowUpdaterBuilder()
.withUpdaterOptions(options)
// add all arguments you need
.build();
}
}That's all! Enjoy using FlowUpdater!