Files
FRO/api/src/main/java/ch/gtache/fro/FetcherConfiguration.java

36 lines
745 B
Java

package ch.gtache.fro;
import java.nio.file.Path;
import java.time.Duration;
public interface FetcherConfiguration {
/**
* Returns the root folder where the data is stored
*
* @return The root folder
*/
Path rootFolder();
/**
* Sets the root folder where the data is stored
*
* @param rootFolder The root folder
*/
void setRootFolder(final Path rootFolder);
/**
* Returns the duration to wait between two fetches
*
* @return The duration
*/
Duration waitBetweenFetch();
/**
* Sets the duration to wait between two fetches
*
* @param waitBetweenFetch The duration
*/
void setWaitBetweenFetch(final Duration waitBetweenFetch);
}