Exact picture seems to work
This commit is contained in:
35
api/src/main/java/ch/gtache/fro/FetcherConfiguration.java
Normal file
35
api/src/main/java/ch/gtache/fro/FetcherConfiguration.java
Normal file
@@ -0,0 +1,35 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user