Class SynchronizationConfiguration.Builder
- java.lang.Object
-
- com.e1c.g5.v8.dt.platform.cloud.core.sync.SynchronizationConfiguration.Builder
-
- Enclosing class:
- SynchronizationConfiguration
public static class SynchronizationConfiguration.Builder extends Object
Builder class to buildSynchronizationConfiguration
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SynchronizationConfiguration
build()
Builds configuredSynchronizationConfiguration
.SynchronizationConfiguration.Builder
ignorePaths(List<String> ignorePaths)
Adds the provided paths to the ignore list.SynchronizationConfiguration.Builder
mode(SynchronizationMode mode)
Sets the synchronization mode which determines how session will synchronize directories.
-
-
-
Method Detail
-
ignorePaths
public SynchronizationConfiguration.Builder ignorePaths(List<String> ignorePaths)
Adds the provided paths to the ignore list.To ignore the directory except the
directory/example.txt
clients need to add path todirectory
and!directory/example.txt
as ignore paths.- Parameters:
ignorePaths
- a list of ignore paths to add, cannot benull
- Returns:
- a reference to the synchronization configuration builder instance, never
null
-
mode
public SynchronizationConfiguration.Builder mode(SynchronizationMode mode)
Sets the synchronization mode which determines how session will synchronize directories.- Parameters:
mode
- the synchronization mode, cannot benull
- Returns:
- a reference to the synchronization configuration builder instance, never
null
-
build
public SynchronizationConfiguration build()
Builds configuredSynchronizationConfiguration
.- Returns:
- the configured
SynchronizationConfiguration
, nevernull
-
-