Skip to content

UpdaterOptions

Flow Arg edited this page Nov 11, 2021 · 6 revisions

Updater Options

In this tutorial, you will learn how to customize some FlowUpdater's settings with UpdaterOptions.

Introduction

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.

Example Usage

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!

Clone this wiki locally